Commit 89c7e206 authored by Robert Griesemer's avatar Robert Griesemer

godoc: fix crash

R=iant, rsc
CC=golang-dev
https://golang.org/cl/5500065
parent f2c9d228
......@@ -258,7 +258,7 @@ func (doc *docReader) addDecl(decl ast.Decl) {
case *ast.InterfaceType:
fields = typ.Methods
}
if fields == nil {
if fields != nil {
for _, field := range fields.List {
if len(field.Names) == 0 {
// anonymous field
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment