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)