]> Cypherpunks repositories - gostls13.git/commit
go/types: use consistent receiver names
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 4 Feb 2018 09:25:55 +0000 (09:25 +0000)
committerRobert Griesemer <gri@golang.org>
Tue, 13 Feb 2018 00:50:30 +0000 (00:50 +0000)
commit06a795e4788f0895c10695e4d89c01ff135f0463
treec8a83d7efc901af1cdba4a32fa25711f963aa0f6
parent945872e5ef8b1f73e2f7e23d76a91dec68f8de35
go/types: use consistent receiver names

Inconsistent names are quite obvious on the godoc HTML rendering:

type Array
    func NewArray(elem Type, len int64) *Array
    func (a *Array) Elem() Type
    func (a *Array) Len() int64
    func (t *Array) String() string
    func (t *Array) Underlying() Type

Fix all the String and Underlying methods to be consistent with their
types. This makes these two lists of methods less consistent, but that's
not visible to the user.

This also makes the inconsistent receiver names rule in golint happy.

Change-Id: I7c84d6bae1235887233a70d5f7f61a224106e952
Reviewed-on: https://go-review.googlesource.com/91736
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/type.go