Skip to content

Commit

Permalink
Typo Fix[ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
raysrashmi committed Aug 14, 2013
1 parent a4d4af4 commit cada218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activesupport/lib/active_support/core_ext/string/filters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cada218

Please sign in to comment.