From 74bc80a9e0ecdcb40fb13bbefd02810b20a04e05 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 12 Aug 2021 16:57:19 +0200 Subject: [PATCH] node.rb: fix typo in comment (#200) --- 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