]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] go/types,cmd/compile/internal/types2: fix TypeParams.At docs
authorMatthew Dempsky <mdempsky@google.com>
Thu, 29 Jul 2021 23:01:30 +0000 (16:01 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 29 Jul 2021 23:14:24 +0000 (23:14 +0000)
commit3e7571f6ffb65a7d45c8035f7f8d2409bfda3307
tree62660494148f0d768e1ba97179fbf224b423303a
parent1d35d8ffa5561d1b69ede515c94c2785eaf29e1f
[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>
src/cmd/compile/internal/types2/typeparam.go
src/go/types/typeparam.go