summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-03-26 15:45:38 -0500
committerPeter Zhu <peter@peterzhu.ca>2025-03-29 17:04:56 -0400
commitdbc1ceca3264246ab2e7b47e06e5e62f0409051e (patch)
tree4e3ae41ed6eef4559cfb1a1580981221adbfabc4
parent4e3bc65e88f050563a49982ac0a5e57940def161 (diff)
[DOC] Tweaks for Hash#values
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12988
-rw-r--r--hash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 3dbfe428ab..0ebbbada3b 100644
--- a/hash.c
+++ b/hash.c
@@ -3818,9 +3818,12 @@ values_i(VALUE key, VALUE value, VALUE ary)
* call-seq:
* values -> new_array
*
- * Returns a new Array containing all values in +self+:
+ * Returns a new array containing all values in +self+:
+ *
* h = {foo: 0, bar: 1, baz: 2}
* h.values # => [0, 1, 2]
+ *
+ * Related: see {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching].
*/
VALUE