From fd0263d7ef072ada6f56b6a0fb78bfc0c34db662 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Sat, 24 Aug 2024 16:10:23 +0100 Subject: [PATCH] [DOC] Tweaks for Array#concat --- array.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/array.c b/array.c index a14c532e22..14be7776db 100644 --- a/array.c +++ b/array.c @@ -4973,12 +4973,14 @@ ary_append(VALUE x, VALUE y) /* * call-seq: - * array.concat(*other_arrays) -> self + * concat(*other_arrays) -> self * - * Adds to +array+ all elements from each +Array+ in +other_arrays+; returns +self+: + * Adds to +self+ all elements from each array in +other_arrays+; returns +self+: * * a = [0, 1] - * a.concat([2, 3], [4, 5]) # => [0, 1, 2, 3, 4, 5] + * a.concat(['two', 'three'], [:four, :five], a) + * # => [0, 1, "two", "three", :four, :five, 0, 1] + * */ static VALUE