diff options
author | Robert Findley <rfindley@google.com> | 2021-09-08 11:57:04 -0400 |
---|---|---|
committer | Robert Findley <rfindley@google.com> | 2021-09-08 16:59:47 +0000 |
commit | d419f9c6124557e0bf08e00d7848e3e518ac4cbd (patch) | |
tree | 72ad20fb3bd34cf7a4a2a8a15b40f4e6689b74a0 /src/go/types/index.go | |
parent | 12eb7331b9e220d73ecfba0281e60cf0f5285e18 (diff) | |
download | go-git-d419f9c6124557e0bf08e00d7848e3e518ac4cbd.tar.gz |
go/types: spell out 'Type' in type parameter APIs
As discussed on the go/types proposal (#47916), we should spell out the
word 'Type', rather than using 'T'.
Change-Id: I5f51255eedc07fea61f909b7ecb3093a7fab765e
Reviewed-on: https://go-review.googlesource.com/c/go/+/348376
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/go/types/index.go')
-rw-r--r-- | src/go/types/index.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/index.go b/src/go/types/index.go index 6b8fcc3880..ca04072f7a 100644 --- a/src/go/types/index.go +++ b/src/go/types/index.go @@ -35,7 +35,7 @@ func (check *Checker) indexExpr(x *operand, e *typeparams.IndexExpr) (isFuncInst return false case value: - if sig := asSignature(x.typ); sig != nil && sig.TParams().Len() > 0 { + if sig := asSignature(x.typ); sig != nil && sig.TypeParams().Len() > 0 { // function instantiation return true } |