aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-09 14:44:16 -0800
committerRobert Griesemer <gri@golang.org>2009-11-09 14:44:16 -0800
commit92743615fbc1e41f6bc090d6309c73dd4b97cc1b (patch)
tree06f55a779926c64a69295d20cb7458fd4a3be9d3
parentfb5fce5532b2f18dfa2e9ea964e0365a1edbe69a (diff)
downloadgo-92743615fbc1e41f6bc090d6309c73dd4b97cc1b.tar.gz
go-92743615fbc1e41f6bc090d6309c73dd4b97cc1b.zip
TBR:
fix typo that prevented function bodies from being indexed (ouch!) R=rsc http://go/go-review/1024035
-rw-r--r--src/cmd/godoc/index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/godoc/index.go b/src/cmd/godoc/index.go
index cd246bd2fc..02ce545b1d 100644
--- a/src/cmd/godoc/index.go
+++ b/src/cmd/godoc/index.go
@@ -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: