Skip to content

Commit 75023ae

Browse files
DanielMorsinggopherbot
authored andcommitted
go/ast/inspector: update outdated documentation
CL 666056 removed Cursor.Stack, but the documentation for Inspector.Root still refers to it. Change-Id: I345ddbbbe270f5ac96d38bbde2b177a297bf2f73 Reviewed-on: https://go-review.googlesource.com/c/tools/+/697255 Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 785cd66 commit 75023ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ast/inspector/cursor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type Cursor struct {
4040
// Root returns a cursor for the virtual root node,
4141
// whose children are the files provided to [New].
4242
//
43-
// Its [Cursor.Node] and [Cursor.Stack] methods return nil.
43+
// Its [Cursor.Node] method return nil.
4444
func (in *Inspector) Root() Cursor {
4545
return Cursor{in, -1}
4646
}

0 commit comments

Comments
 (0)