From: Robert Griesemer Date: Thu, 2 Apr 2015 00:48:08 +0000 (-0700) Subject: go/ast: fix ast.Inspect doc string X-Git-Tag: go1.5beta1~1347 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bd09279c3fbe7617800da740103093fa75af522e;p=gostls13.git go/ast: fix ast.Inspect doc string Fixes #10243. Change-Id: I06ac53628980853faecbf1a57ff71b88098d65f2 Reviewed-on: https://go-review.googlesource.com/8382 Reviewed-by: Minux Ma --- diff --git a/src/go/ast/walk.go b/src/go/ast/walk.go index 73ac38647a..d531f5e714 100644 --- a/src/go/ast/walk.go +++ b/src/go/ast/walk.go @@ -379,7 +379,8 @@ func (f inspector) Visit(node Node) Visitor { // Inspect traverses an AST in depth-first order: It starts by calling // f(node); node must not be nil. If f returns true, Inspect invokes f -// for all the non-nil children of node, recursively. +// recursively for each of the non-nil children of node, followed by a +// call of f(nil). // func Inspect(node Node, f func(Node) bool) { Walk(inspector(f), node)