提交 775a13c8 编写于 作者: A Akshay Vishnoi

[ci skip] Correct documentation of HashWithIndifferentAccess#dup

上级 3051356a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册