Skip to content

Commit

Permalink
node.rb: fix typo in comment (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Aug 12, 2021
1 parent e75733e commit 74bc80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/ast/node_pattern/node.rb
Expand Up @@ -54,7 +54,7 @@ def nb_captures
children_nodes.sum(&:nb_captures)
end

# @return [Boolean] returns wether it matches a variable number of elements
# @return [Boolean] returns whether it matches a variable number of elements
def variadic?
arity.is_a?(Range)
end
Expand Down

0 comments on commit 74bc80a

Please sign in to comment.