Skip to content

Commit 5aa963f

Browse files
committed
Fix typo in visitor example code
1 parent 8246f09 commit 5aa963f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/lib/prism/visitor.rb.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module Prism
3434
#
3535
# class FooCalls < Prism::Visitor
3636
# def visit_call_node(node)
37-
# if node.name == "foo"
37+
# if node.name == :foo
3838
# # Do something with the node
3939
# end
4040
#

0 commit comments

Comments
 (0)