mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
5069452d6d
commit
37eb1d1964
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue