Skip to content

Commit

Permalink
cmd/doc: fix build
Browse files Browse the repository at this point in the history
Change-Id: Ic8437a1d2aeb424d6d5ce9e608c1293bba4c7bbc
Reviewed-on: https://go-review.googlesource.com/10093
Run-TryBot: Mikio Hara <[email protected]>
Reviewed-by: Josh Bleecher Snyder <[email protected]>
  • Loading branch information
cixtor committed May 15, 2015
1 parent 5069452 commit 37eb1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/doc/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 37eb1d1

Please sign in to comment.