From cada218f539265c6c44002833dc41b36be7738d3 Mon Sep 17 00:00:00 2001 From: Rashmi Yadav Date: Wed, 14 Aug 2013 21:36:17 +0200 Subject: [PATCH] Typo Fix[ci skip] --- activesupport/lib/active_support/core_ext/string/filters.rb | 6 +++--- 1 file 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