Permalink
Browse files

Merge pull request #11887 from raysrashmi/typo_fix

Typo Fix[ci skip]
  • Loading branch information...
carlosantoniodasilva committed Aug 15, 2013
2 parents a4d4af4 + cada218 commit e6b9f130a658977e3f9ddce106d321b55af916b7
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/core_ext/string/filters.rb
@@ -20,12 +20,12 @@ def squish!
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

0 comments on commit e6b9f13

Please sign in to comment.