mirror of https://github.com/golang/go.git
types2, go/types: remove doc link from Func.Pkg comment
The documentation link only works with exported identifiers. Further, the built-in error interface lives in pseudo package "builtin" only, thus it's not a real package that can be referred using doc links. Change-Id: I2116beb27fc73ba33f8352301fe77b4b6abc3ec1 Reviewed-on: https://go-review.googlesource.com/c/go/+/534436 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
dacf1f1e10
commit
e12bdc80f2
|
|
@ -409,7 +409,7 @@ func (obj *Func) Origin() *Func {
|
|||
// Pkg returns the package to which the function belongs.
|
||||
//
|
||||
// The result is nil for methods of types in the Universe scope,
|
||||
// like [error.Error].
|
||||
// like method Error of the error built-in interface type.
|
||||
func (obj *Func) Pkg() *Package { return obj.object.Pkg() }
|
||||
|
||||
// hasPtrRecv reports whether the receiver is of the form *T for the given method obj.
|
||||
|
|
|
|||
|
|
@ -411,7 +411,7 @@ func (obj *Func) Origin() *Func {
|
|||
// Pkg returns the package to which the function belongs.
|
||||
//
|
||||
// The result is nil for methods of types in the Universe scope,
|
||||
// like [error.Error].
|
||||
// like method Error of the error built-in interface type.
|
||||
func (obj *Func) Pkg() *Package { return obj.object.Pkg() }
|
||||
|
||||
// hasPtrRecv reports whether the receiver is of the form *T for the given method obj.
|
||||
|
|
|
|||
Loading…
Reference in New Issue