Commit bd09279c authored by Robert Griesemer's avatar Robert Griesemer

go/ast: fix ast.Inspect doc string

Fixes #10243.

Change-Id: I06ac53628980853faecbf1a57ff71b88098d65f2
Reviewed-on: https://go-review.googlesource.com/8382Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent ad360094
......@@ -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)
......
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