diff --git a/lib/rubocop/ast/node_pattern/node.rb b/lib/rubocop/ast/node_pattern/node.rb index 11a2d4d56..99324b0ae 100644 --- a/lib/rubocop/ast/node_pattern/node.rb +++ b/lib/rubocop/ast/node_pattern/node.rb @@ -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