summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2015-05-15 09:39:16 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2015-05-15 00:48:46 +0000
commit37eb1d1964049df2feb847ccef501f2807fdf618 (patch)
tree250e201149f48c80b068221097ae5b312dd39731 /src
parent5069452d6d23c9d1725305746ca948602f7a597c (diff)
downloadgo-git-37eb1d1964049df2feb847ccef501f2807fdf618.tar.gz
cmd/doc: fix build
Change-Id: Ic8437a1d2aeb424d6d5ce9e608c1293bba4c7bbc Reviewed-on: https://go-review.googlesource.com/10093 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/doc/pkg.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/doc/pkg.go b/src/cmd/doc/pkg.go
index 53f336ff1c..ed4b0b82db 100644
--- a/src/cmd/doc/pkg.go
+++ b/src/cmd/doc/pkg.go
@@ -370,7 +370,7 @@ func (pkg *Package) symbolDoc(symbol string) {
// structs and methods from interfaces (unless the unexported flag is set).
func trimUnexportedElems(spec *ast.TypeSpec) {
if *unexported {
- return fields
+ return
}
switch typ := spec.Type.(type) {
case *ast.StructType: