mirror of
https://github.com/golang/go
synced 2024-10-02 22:25:08 +00:00
types2, go/types: correct NewTypeParam documentation
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>
This commit is contained in:
parent
6fea409424
commit
e9a306e004
|
@ -25,8 +25,8 @@ type TypeParam struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTypeParam returns a new TypeParam. Type parameters may be set on a Named
|
// 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
|
// type by calling SetTypeParams. Setting a type parameter on more than one type
|
||||||
// than one type will result in a panic.
|
// will result in a panic.
|
||||||
//
|
//
|
||||||
// The constraint argument can be nil, and set later via SetConstraint. If the
|
// The constraint argument can be nil, and set later via SetConstraint. If the
|
||||||
// constraint is non-nil, it must be fully defined.
|
// constraint is non-nil, it must be fully defined.
|
||||||
|
|
|
@ -28,8 +28,8 @@ type TypeParam struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTypeParam returns a new TypeParam. Type parameters may be set on a Named
|
// 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
|
// type by calling SetTypeParams. Setting a type parameter on more than one type
|
||||||
// than one type will result in a panic.
|
// will result in a panic.
|
||||||
//
|
//
|
||||||
// The constraint argument can be nil, and set later via SetConstraint. If the
|
// The constraint argument can be nil, and set later via SetConstraint. If the
|
||||||
// constraint is non-nil, it must be fully defined.
|
// constraint is non-nil, it must be fully defined.
|
||||||
|
|
Loading…
Reference in a new issue