diff options
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/filters.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/filters.rb b/activesupport/lib/active_support/core_ext/string/filters.rb index 2e2dd86a8b..49c0df6026 100644 --- a/activesupport/lib/active_support/core_ext/string/filters.rb +++ b/activesupport/lib/active_support/core_ext/string/filters.rb @@ -20,12 +20,12 @@ class String self end - # Returns a new string with all occurances of the pattern removed. Short-hand for String#gsub(pattern, ''). + # Returns a new string with all occurrences of the pattern removed. Short-hand for String#gsub(pattern, ''). def remove(pattern) - gsub pattern, '' + gsub pattern, '' end - # Alters the string by removing all occurances of the pattern. Short-hand for String#gsub!(pattern, ''). + # Alters the string by removing all occurrences of the pattern. Short-hand for String#gsub!(pattern, ''). def remove!(pattern) gsub! pattern, '' end |