diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-05-31 20:38:28 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-05-31 20:38:28 +0530 |
commit | 775a13c8a142316bbd02c26b1576c806314581bd (patch) | |
tree | 984d9c13ceb2d7a8bf0fb139d8a6b439438848ce /activesupport/lib/active_support | |
parent | 3051356a8005518392f3414184daf933f5597092 (diff) | |
download | rails-775a13c8a142316bbd02c26b1576c806314581bd.tar.gz rails-775a13c8a142316bbd02c26b1576c806314581bd.tar.bz2 rails-775a13c8a142316bbd02c26b1576c806314581bd.zip |
[ci skip] Correct documentation of HashWithIndifferentAccess#dup
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb index ed41b28d54..e782cfa2f5 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -182,8 +182,8 @@ module ActiveSupport # dup = hash.dup # dup[:a][:c] = 'c' # - # hash[:a][:c] #=> "c" - # dup[:a][:c] #=> "c" + # hash[:a][:c] # => nil + # dup[:a][:c] # => "c" def dup self.class.new(self).tap do |new_hash| new_hash.default = default |