mirror of
https://github.com/golang/go
synced 2024-11-24 23:17:57 -07:00
godoc: fix crash
R=iant, rsc CC=golang-dev https://golang.org/cl/5500065
This commit is contained in:
parent
f2c9d22850
commit
89c7e206d1
@ -258,7 +258,7 @@ func (doc *docReader) addDecl(decl ast.Decl) {
|
|||||||
case *ast.InterfaceType:
|
case *ast.InterfaceType:
|
||||||
fields = typ.Methods
|
fields = typ.Methods
|
||||||
}
|
}
|
||||||
if fields == nil {
|
if fields != nil {
|
||||||
for _, field := range fields.List {
|
for _, field := range fields.List {
|
||||||
if len(field.Names) == 0 {
|
if len(field.Names) == 0 {
|
||||||
// anonymous field
|
// anonymous field
|
||||||
|
Loading…
Reference in New Issue
Block a user