aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorErich Menge <erich.menge@me.com>2012-04-30 20:17:10 -0500
committerErich Menge <erich.menge@me.com>2012-04-30 20:21:02 -0500
commitdda6fa8c9cf26ca2fe6793a32e2663bb85169d5c (patch)
tree0c3d128d699918dac37e75daedf0bdd5359056f3 /activesupport/lib/active_support/core_ext
parentc3954baee92446219606621c1b185360553a6d5d (diff)
downloadrails-dda6fa8c9cf26ca2fe6793a32e2663bb85169d5c.tar.gz
rails-dda6fa8c9cf26ca2fe6793a32e2663bb85169d5c.tar.bz2
rails-dda6fa8c9cf26ca2fe6793a32e2663bb85169d5c.zip
Minor English fix.
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/slice.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/slice.rb b/activesupport/lib/active_support/core_ext/hash/slice.rb
index 45181f0e16..cb05dcd320 100644
--- a/activesupport/lib/active_support/core_ext/hash/slice.rb
+++ b/activesupport/lib/active_support/core_ext/hash/slice.rb
@@ -18,7 +18,7 @@ class Hash
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)