From: Robert Griesemer Date: Thu, 23 Feb 2017 20:52:33 +0000 (-0800) Subject: go/types: fix doc string for Named.Obj X-Git-Tag: go1.9beta1~1453 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8ca68c3fec18bec7739ceac0f55681f915baa7f9;p=gostls13.git go/types: fix doc string for Named.Obj Fixes #19249. Change-Id: I6327192eca11fa24f1078c016c9669e4ba4bdb4e Reviewed-on: https://go-review.googlesource.com/37399 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/go/types/type.go b/src/go/types/type.go index 01adee8a3e..a0a1238395 100644 --- a/src/go/types/type.go +++ b/src/go/types/type.go @@ -394,7 +394,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.