Skip to content

Commit

Permalink
Merge pull request #15446 from akshay-vishnoi/doc_changes
Browse files Browse the repository at this point in the history
[ci skip] Correct documentation of HashWithIndifferentAccess#dup
  • Loading branch information
robin850 committed May 31, 2014
2 parents 7c63947 + 775a13c commit b73dd62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b73dd62

Please sign in to comment.