aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2014-05-31 17:32:15 +0200
committerRobin Dupret <robin.dupret@gmail.com>2014-05-31 17:32:15 +0200
commitb73dd6280022038006063f7dd21a143253eb32ae (patch)
tree65a14627ea374f3507cfa13209c203b53f359e97
parent7c639472fb4514ebd6ed88b278d24e1819a04028 (diff)
parent775a13c8a142316bbd02c26b1576c806314581bd (diff)
downloadrails-b73dd6280022038006063f7dd21a143253eb32ae.tar.gz
rails-b73dd6280022038006063f7dd21a143253eb32ae.tar.bz2
rails-b73dd6280022038006063f7dd21a143253eb32ae.zip
Merge pull request #15446 from akshay-vishnoi/doc_changes
[ci skip] Correct documentation of HashWithIndifferentAccess#dup
-rw-r--r--activesupport/lib/active_support/hash_with_indifferent_access.rb4
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