Make golint happy: fix method receiver

golint insists on uniform receiver names.
This commit is contained in:
Vytautas Šaltenis 2016-09-17 19:36:55 +03:00
parent 8a11177489
commit 1aa82c4039
1 changed files with 2 additions and 2 deletions

View File

@ -278,8 +278,8 @@ type NodeVisitor func(node *Node, entering bool) WalkStatus
// Walk is a convenience method that instantiates a walker and starts a
// traversal of subtree rooted at n.
func (root *Node) Walk(visitor NodeVisitor) {
w := newNodeWalker(root)
func (n *Node) Walk(visitor NodeVisitor) {
w := newNodeWalker(n)
for w.current != nil {
status := visitor(w.current, w.entering)
switch status {