summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-02-26 10:31:42 -0600
committerPeter Zhu <peter@peterzhu.ca>2025-02-26 15:51:58 -0500
commit8dce189078d609340d9a558a1e770a2002a32fa0 (patch)
treeb62727d70cde862bce14e07edd3bbd63df3b3f73
parent3bbb029d449868e5f371cc5c2311366fa33218cb (diff)
[DOC] Tweaks for Hash#keys
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12818
-rw-r--r--hash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index ead301da14..79879d706c 100644
--- a/hash.c
+++ b/hash.c
@@ -3612,9 +3612,12 @@ keys_i(VALUE key, VALUE value, VALUE ary)
* call-seq:
* keys -> new_array
*
- * Returns a new Array containing all keys in +self+:
+ * Returns a new array containing all keys in +self+:
+ *
* h = {foo: 0, bar: 1, baz: 2}
* h.keys # => [:foo, :bar, :baz]
+ *
+ * Related: see {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching].
*/
VALUE