]> Cypherpunks repositories - gostls13.git/commitdiff
TBR:
authorRobert Griesemer <gri@golang.org>
Mon, 9 Nov 2009 22:44:16 +0000 (14:44 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 9 Nov 2009 22:44:16 +0000 (14:44 -0800)
fix typo that prevented function bodies from being indexed (ouch!)

R=rsc
http://go/go-review/1024035

src/cmd/godoc/index.go

index cd246bd2fc169915d07f2c7877d0779d609a6675..02ce545b1d6b6482d82daf76d962d6689effa27b 100644 (file)
@@ -557,7 +557,7 @@ func (x *Indexer) Visit(node interface{}) bool {
                x.visitIdent(kind, n.Name);
                ast.Walk(x, n.Type);
                if n.Body != nil {
-                       ast.Walk(x, n.Type)
+                       ast.Walk(x, n.Body)
                }
 
        case *ast.File: