mirror of
https://github.com/golang/go
synced 2024-11-26 04:17:59 -07:00
[dev.typeparams] go/types,cmd/compile/internal/types2: fix TypeParams.At docs
Presumably the "It is safe to call on a nil receiver" comment was mistakenly copied from TypeParams.Len, which is actually safe to call on a nil receiver. Change-Id: Iec5ae32c98dc91ce84a6207b47f2b1e530bdbfe2 Reviewed-on: https://go-review.googlesource.com/c/go/+/338430 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
1d35d8ffa5
commit
3e7571f6ff
@ -108,7 +108,6 @@ func (tps *TypeParams) Len() int {
|
||||
}
|
||||
|
||||
// At returns the i'th type parameter in the list.
|
||||
// It is safe to call on a nil receiver.
|
||||
func (tps *TypeParams) At(i int) *TypeName {
|
||||
return tps.list()[i]
|
||||
}
|
||||
|
@ -98,7 +98,6 @@ func (tps *TypeParams) Len() int {
|
||||
}
|
||||
|
||||
// At returns the i'th type parameter in the list.
|
||||
// It is safe to call on a nil receiver.
|
||||
func (tps *TypeParams) At(i int) *TypeName {
|
||||
return tps.list()[i]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user