From 3c782264fbde3108fd1eae9abcc4015edfd79e65 Mon Sep 17 00:00:00 2001 From: Kenji Kaneda Date: Fri, 15 Jan 2016 19:34:54 -0800 Subject: [PATCH] go/types: fix a comment of Named.Obj // TypeName returns ... -> // Obj returns ... Change-Id: I2ac6133a703ec2c4b2045d4bdf9acc70049f0e1e Reviewed-on: https://go-review.googlesource.com/18704 Reviewed-by: Brad Fitzpatrick --- go/types/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.