summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/String_spec.rb
diff options
context:
space:
mode:
authorNick Kelley <nick@nickkelley.dev>2021-04-30 15:12:34 -0700
committerJeremy Evans <code@jeremyevans.net>2021-04-30 15:46:19 -0700
commita9824a3113ee5342e7ac90387de9f3b9d5ec9e0a (patch)
treefc8c6b2418bc3d543f1b070467b3a54c7112405f /spec/ruby/core/kernel/String_spec.rb
parent1f255adda93bd7958afc7405026326f630ba4748 (diff)
Correct documentation example on Hash#dig
Fixes [Misc #17842]. The current documentation suggests that: {foo: {bar: {baz: 2}}}.dig(:foo, :bar) # => {:bar=>{:baz=>2}} when it should be: {foo: {bar: {baz: 2}}}.dig(:foo, :bar) # => {:baz=>2}
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4441
Diffstat (limited to 'spec/ruby/core/kernel/String_spec.rb')
0 files changed, 0 insertions, 0 deletions