Permalink
Browse files

Merge pull request #15446 from akshay-vishnoi/doc_changes

[ci skip] Correct documentation of HashWithIndifferentAccess#dup
  • Loading branch information...
2 parents 7c63947 + 775a13c commit b73dd6280022038006063f7dd21a143253eb32ae @robin850 robin850 committed May 31, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -182,8 +182,8 @@ def values_at(*indices)
# 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

0 comments on commit b73dd62

Please sign in to comment.