Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor English fix.

  • Loading branch information...
commit dda6fa8c9cf26ca2fe6793a32e2663bb85169d5c 1 parent c3954ba
Erich Menge authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/core_ext/hash/slice.rb
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.