]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: fix doc string for Named.Obj
authorRobert Griesemer <gri@golang.org>
Thu, 23 Feb 2017 20:52:33 +0000 (12:52 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 23 Feb 2017 21:06:55 +0000 (21:06 +0000)
Fixes #19249.

Change-Id: I6327192eca11fa24f1078c016c9669e4ba4bdb4e
Reviewed-on: https://go-review.googlesource.com/37399
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/types/type.go

index 01adee8a3ef471438a428f9d2358436ab4b0f5ce..a0a12383953b2a236dfb9765293377dd8cecd55b 100644 (file)
@@ -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.