Skip to content

Commit

Permalink
Minor English fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erich Menge committed May 1, 2012
1 parent c3954ba commit dda6fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/hash/slice.rb
Expand Up @@ -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)
Expand Down

0 comments on commit dda6fa8

Please sign in to comment.