]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: ensure functions with unexported return values are shown
authorJoe Tsai <joetsai@digital-static.net>
Tue, 2 Aug 2016 03:04:25 +0000 (20:04 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Tue, 2 Aug 2016 03:24:48 +0000 (03:24 +0000)
commit6317c213c953d0879fe88593b4372f03d25f369b
tree3093266fa810c3cd1d1adc3fcc77af70d6499b94
parentf5758739a8f011c1d146a7736ab8f0d2834e1783
cmd/doc: ensure functions with unexported return values are shown

The commit in golang.org/cl/22354 groups constructors functions under
the type that they construct to. However, this caused a minor regression
where functions that had unexported return values were not being printed
at all. Thus, we forgo the grouping logic if the type the constructor falls
under is not going to be printed.

Fixes #16568

Change-Id: Idc14f5d03770282a519dc22187646bda676af612
Reviewed-on: https://go-review.googlesource.com/25369
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
Reviewed-by: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/doc/doc_test.go
src/cmd/doc/pkg.go
src/cmd/doc/testdata/pkg.go