]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: don't drop const/var block if first entry is unexported
authorRob Pike <r@golang.org>
Fri, 18 Sep 2015 21:53:33 +0000 (14:53 -0700)
committerRob Pike <r@golang.org>
Mon, 21 Sep 2015 16:42:09 +0000 (16:42 +0000)
commit4e99ed6fef28bc263ec42e63fd717a13367fb659
treedefc568d5ea25b6dc4d89ac11358c576c180aed0
parentfcf8143d638dbc34fdd418f45f8e8b45de802916
cmd/doc: don't drop const/var block if first entry is unexported

The code assumed that if the first entry was unexported, all the
entries were. The fix is simple: delete a bunch of code.

Fixes #12286.

Change-Id: Icb09274e99ce97df4d8bddbe59d17a5c0622e4c6
Reviewed-on: https://go-review.googlesource.com/14780
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/cmd/doc/doc_test.go
src/cmd/doc/pkg.go
src/cmd/doc/testdata/pkg.go