From 670d7253bea58d460eeef9a99b8815027cee7b01 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sun, 31 May 2020 18:56:17 +0900 Subject: [PATCH] Fix a typo --- lib/rubocop/cop/style/redundant_regexp_escape.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubocop/cop/style/redundant_regexp_escape.rb b/lib/rubocop/cop/style/redundant_regexp_escape.rb index 6795c05801b..b57d9d765c4 100644 --- a/lib/rubocop/cop/style/redundant_regexp_escape.rb +++ b/lib/rubocop/cop/style/redundant_regexp_escape.rb @@ -68,7 +68,7 @@ def slash_literal?(node) def allowed_escape?(node, char, within_character_class) # Strictly speaking a few single-letter metachars are currently - # unneccessary to "escape", e.g. g, i, E, F, but enumerating them is + # unnecessary to "escape", e.g. g, i, E, F, but enumerating them is # rather difficult, and their behaviour could change over time with # different versions of Ruby so that e.g. /\g/ != /g/ return true if /[[:alnum:]]/.match?(char)