mirror of
https://github.com/status-im/markdown.git
synced 2025-02-23 08:38:23 +00:00
Make golint happy: fix method receiver
golint insists on uniform receiver names.
This commit is contained in:
parent
8a11177489
commit
1aa82c4039
4
node.go
4
node.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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user