Permalink
Browse files

[ci skip] Correct documentation of HashWithIndifferentAccess#dup

  • Loading branch information...
1 parent 3051356 commit 775a13c8a142316bbd02c26b1576c806314581bd @akshay-vishnoi akshay-vishnoi 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 775a13c

Please sign in to comment.