Permalink
Browse files

Minor English fix.

  • Loading branch information...
1 parent c3954ba commit dda6fa8c9cf26ca2fe6793a32e2663bb85169d5c Erich Menge committed May 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/hash/slice.rb
@@ -18,7 +18,7 @@ def slice(*keys)
end
# Replaces the hash with only the given keys.
- # Returns a hash contained the removed key/value pairs
+ # Returns a hash containing the removed key/value pairs.
# {:a => 1, :b => 2, :c => 3, :d => 4}.slice!(:a, :b) # => {:c => 3, :d => 4}
def slice!(*keys)
keys.map! { |key| convert_key(key) } if respond_to?(:convert_key, true)

0 comments on commit dda6fa8

Please sign in to comment.