]> Cypherpunks repositories - gostls13.git/commitdiff
types2, go/types: correct NewTypeParam documentation
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 21 Jun 2024 07:45:26 +0000 (14:45 +0700)
committerGopher Robot <gobot@golang.org>
Fri, 21 Jun 2024 18:41:24 +0000 (18:41 +0000)
Signature type does not have SetTypeParams method, only Named type.

Change-Id: Ic7a25c24cb821540d921eb2c94dfff31f28f7aa4
Reviewed-on: https://go-review.googlesource.com/c/go/+/593955
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>

src/cmd/compile/internal/types2/typeparam.go
src/go/types/typeparam.go

index 9ad064906fb25bbae5767a7b3169221cd6cd555a..e22981e1ad0c00d958240c80acc13bcd91323e94 100644 (file)
@@ -25,8 +25,8 @@ type TypeParam struct {
 }
 
 // NewTypeParam returns a new TypeParam. Type parameters may be set on a Named
-// or Signature type by calling SetTypeParams. Setting a type parameter on more
-// than one type will result in a panic.
+// type by calling SetTypeParams. Setting a type parameter on more than one type
+// will result in a panic.
 //
 // The constraint argument can be nil, and set later via SetConstraint. If the
 // constraint is non-nil, it must be fully defined.
index 58a02de86029b120e987536ea30361006351890f..789b63d7a15aaebd127c60a41553f057fcca55bc 100644 (file)
@@ -28,8 +28,8 @@ type TypeParam struct {
 }
 
 // NewTypeParam returns a new TypeParam. Type parameters may be set on a Named
-// or Signature type by calling SetTypeParams. Setting a type parameter on more
-// than one type will result in a panic.
+// type by calling SetTypeParams. Setting a type parameter on more than one type
+// will result in a panic.
 //
 // The constraint argument can be nil, and set later via SetConstraint. If the
 // constraint is non-nil, it must be fully defined.