]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/doc: fix build
authorMikio Hara <mikioh.mikioh@gmail.com>
Fri, 15 May 2015 00:39:16 +0000 (09:39 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 15 May 2015 00:48:46 +0000 (00:48 +0000)
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>
src/cmd/doc/pkg.go

index 53f336ff1c0d9eabca61722365f35d50b02873a7..ed4b0b82db40442fe3748944dd37e256e4b79002 100644 (file)
@@ -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: