From: Robert Griesemer Date: Thu, 19 Jan 2012 16:52:53 +0000 (-0800) Subject: go/doc, godoc: don't shadow receiver X-Git-Tag: weekly.2012-01-20~23 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9e5f62ac0c7259988fb616d6a91625befa1db62f;p=gostls13.git go/doc, godoc: don't shadow receiver Fixes #2737. R=bradfitz CC=golang-dev https://golang.org/cl/5553062 --- diff --git a/src/pkg/go/doc/doc.go b/src/pkg/go/doc/doc.go index 112d01f78f..0259a6fec9 100644 --- a/src/pkg/go/doc/doc.go +++ b/src/pkg/go/doc/doc.go @@ -36,8 +36,8 @@ type Value struct { type Method struct { *Func // TODO(gri) The following fields are not set at the moment. - Recv *Type // original receiver base type - Level int // embedding level; 0 means Func is not embedded + Origin *Type // original receiver base type + Level int // embedding level; 0 means Func is not embedded } // Type is the documentation for type declaration.