]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: clarify documentation with respect to generic types
authorRobert Findley <rfindley@google.com>
Wed, 9 Mar 2022 16:35:10 +0000 (11:35 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 9 Mar 2022 22:51:34 +0000 (22:51 +0000)
commite189b5e06d4831025758c0b152838fa1a0375525
tree990ea9316190e75a571fe6563c19df72418937e4
parenta987aaf5f7a5f64215ff75ac93a2c1b39967a8c9
go/types, types2: clarify documentation with respect to generic types

Address several areas where documentation was inaccurate or unclear
regarding generic types. Also prefer the use of the word 'generic' over
'parameterized', and add additional documentation for the use of
SetConstraint.

For #49593

Change-Id: Iccac60d1b3e2c45a57a3d03b3c10984293af57dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/391154
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/typeparam.go
src/go/types/api.go
src/go/types/eval.go
src/go/types/instantiate.go
src/go/types/named.go
src/go/types/typeparam.go