From 34f848b366f72ef04a29097ed2e72e748ecbb4ae Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 30 Jan 2026 17:11:59 -0500 Subject: [DOC] Fix hash style in Hash#dig --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index dbd8f76950..fc8bfa24eb 100644 --- a/hash.c +++ b/hash.c @@ -4850,7 +4850,7 @@ rb_hash_any_p(int argc, VALUE *argv, VALUE hash) * h.dig(:hello) # => nil * h.default_proc = -> (hash, _key) { hash } * h.dig(:hello, :world) - * # => {:foo=>{:bar=>[:a, :b, :c]}} + * # => {foo: {bar: [:a, :b, :c]}} * * Related: {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching]. */ -- cgit v1.2.3