From 94f131496c010b83518589a8649bad516aabc108 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Wed, 11 Aug 2021 10:49:39 +0200 Subject: [PATCH] node.rb: fix typo in comment --- lib/rubocop/ast/node_pattern/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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