summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2025-03-11 17:26:57 -0500
committerPeter Zhu <[email protected]>2025-03-11 21:54:06 -0400
commit86eff8565b21ca7e8deff572feedbcd7d2421d55 ()
tree6c3b13e197192165cd0d4d0dfe43d747d8aef877 /hash.c
parent5208d2f440ec3175dc48ba5672413bb3b5cb4fd7 (diff)
[DOC] Tweaks for Hash#to_a
Notes: Merged: https://.com/ruby/ruby/pull/12908
-rw-r--r--hash.c7
1 files changed, 5 insertions, 2 deletions
@@ -3421,10 +3421,13 @@ to_a_i(VALUE key, VALUE value, VALUE ary)
* call-seq:
* to_a -> new_array
*
- * Returns a new Array of 2-element Array objects;
- * each nested Array contains a key-value pair from +self+:
* h = {foo: 0, bar: 1, baz: 2}
* h.to_a # => [[:foo, 0], [:bar, 1], [:baz, 2]]
*/
static VALUE