From a793b5376c6f92dd7aa45433897a9484120574bb Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Fri, 2 Aug 2024 17:38:13 +0100 Subject: [PATCH] [DOC] Tweaks to Array#* --- array.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/array.c b/array.c index 977dae4a6d..c29e02e13b 100644 --- a/array.c +++ b/array.c @@ -4982,16 +4982,16 @@ rb_ary_concat(VALUE x, VALUE y) /* * call-seq: - * array * n -> new_array - * array * string_separator -> new_string + * self * n -> new_array + * self * string_separator -> new_string * - * When non-negative argument Integer +n+ is given, - * returns a new +Array+ built by concatenating the +n+ copies of +self+: + * When non-negative integer argument +n+ is given, + * returns a new array built by concatenating +n+ copies of +self+: * * a = ['x', 'y'] * a * 3 # => ["x", "y", "x", "y", "x", "y"] * - * When String argument +string_separator+ is given, + * When string argument +string_separator+ is given, * equivalent to array.join(string_separator): * * [0, [0, 1], {foo: 0}] * ', ' # => "0, 0, 1, {:foo=>0}"