diff --git a/go/types/type.go b/go/types/type.go index 1df8b45b..8e24b54d 100644 --- a/go/types/type.go +++ b/go/types/type.go @@ -398,7 +398,7 @@ func NewNamed(obj *TypeName, underlying Type, methods []*Func) *Named { return typ } -// TypeName returns the type name for the named type t. +// Obj returns the type name for the named type t. func (t *Named) Obj() *TypeName { return t.obj } // NumMethods returns the number of explicit methods whose receiver is named type t.