all repos — grayfriday @ 1aa82c40393e5adf88ec027830a526dbcf350cf2

blackfriday fork with a few changes

Make golint happy: fix method receiver

golint insists on uniform receiver names.
Vytautas Ĺ altenis vytas@rtfb.lt
Sat, 17 Sep 2016 19:36:55 +0300
commit

1aa82c40393e5adf88ec027830a526dbcf350cf2

parent

8a11177489fa4fe8edb5a69f34888bda5b2139a7

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M node.gonode.go

@@ -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 {