]> Cypherpunks repositories - gostls13.git/commit
go/doc: replace unexported values with underscore if necessary
authorJoe Tsai <joetsai@digital-static.net>
Fri, 16 Feb 2018 23:35:35 +0000 (15:35 -0800)
committerJoe Tsai <thebrokentoaster@gmail.com>
Tue, 27 Feb 2018 16:29:17 +0000 (16:29 +0000)
commitf399af3114400d791332cf77234f7b9d42cbfb50
treebc595121530767f9976f61535b4ea7eb7b81aa6a
parented6c6c9c11496ed8e458f6e0731103126ce60223
go/doc: replace unexported values with underscore if necessary

When a var or const declaration contains a mixture of exported and unexported
identifiers, replace the unexported identifiers with underscore.
Otherwise, the LHS and the RHS may mismatch or the declaration may mismatch
with an iota from above.

Fixes #22426

Change-Id: Icd5fb81b4ece647232a9f7d05cb140227091e9cb
Reviewed-on: https://go-review.googlesource.com/94877
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/doc/exports.go
src/go/doc/testdata/g.0.golden [new file with mode: 0644]
src/go/doc/testdata/g.1.golden [new file with mode: 0644]
src/go/doc/testdata/g.2.golden [new file with mode: 0644]
src/go/doc/testdata/g.go [new file with mode: 0644]