diff options
author | Rashmi Yadav <rays.rashmi@gmail.com> | 2013-08-14 21:36:17 +0200 |
---|---|---|
committer | Rashmi Yadav <rays.rashmi@gmail.com> | 2013-08-14 21:36:17 +0200 |
commit | cada218f539265c6c44002833dc41b36be7738d3 (patch) | |
tree | 772b4e5bf30eedf140d927096523ec6897fa3cdf /activesupport | |
parent | a4d4af4083d4b41c348f7e707874aedfa1d8a3cd (diff) | |
download | rails-cada218f539265c6c44002833dc41b36be7738d3.tar.gz rails-cada218f539265c6c44002833dc41b36be7738d3.tar.bz2 rails-cada218f539265c6c44002833dc41b36be7738d3.zip |
Typo Fix[ci skip]
Diffstat (limited to 'activesupport')
-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 |