From 86eff8565b21ca7e8deff572feedbcd7d2421d55 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Tue, 11 Mar 2025 17:26:57 -0500 Subject: [PATCH] [DOC] Tweaks for Hash#to_a --- hash.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hash.c b/hash.c index fc56ad86f9..1c34e9f4ac 100644 --- a/hash.c +++ b/hash.c @@ -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+: + * Returns all elements of +self+ as an array of 2-element arrays; + * 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]] + * + * Related: see {Methods for Converting}[rdoc-ref:Hash@Methods+for+Converting]. */ static VALUE