summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2026-01-30 17:11:59 -0500
committerPeter Zhu <peter@peterzhu.ca>2026-02-01 22:12:29 -0500
commit34f848b366f72ef04a29097ed2e72e748ecbb4ae (patch)
tree11693d4dd8078c96b0141a3ce818764e3a081b69 /hash.c
parent3ab35e5e2e9dfa156aa87d30a90a66593198400d (diff)
[DOC] Fix hash style in Hash#dig
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
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].
*/