ruby-changes:62353
From: BurdetteLamar <ko1@a...>
Date: Wed, 22 Jul 2020 07:07:36 +0900 (JST)
Subject: [ruby-changes:62353] d29de7b31b (master): Enhanced RDoc for Array
https://git.ruby-lang.org/ruby.git/commit/?id=d29de7b31b From d29de7b31bad1848f8baaa49b00e4203057032a7 Mon Sep 17 00:00:00 2001 From: BurdetteLamar <burdettelamar@y...> Date: Tue, 21 Jul 2020 12:07:26 -0500 Subject: Enhanced RDoc for Array diff --git a/array.c b/array.c index fdab1b1..591ae9c 100644 --- a/array.c +++ b/array.c @@ -5461,7 +5461,8 @@ rb_ary_concat(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/array.c#L5461 * * --- * - * When argument +n+ is given, returns a new concatenated \Array. + * When argument +n+ is given, returns a new \Array + * built by concatenating +n+ copies of +self+. * * If +n+ is positive, returns the concatenation of +n+ repetitions of +self+: * a = ['x', 'y'] @@ -5474,13 +5475,14 @@ rb_ary_concat(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/array.c#L5475 * --- * * When argument +string_separator+ is given, - * returns a new \String equivalent to the result of <tt>array.join(string_separator)</tt>. + * equivalent to <tt>array.join(string_separator)</tt>. * * If +array+ is non-empty, returns the join of each element's +to_s+ value: * [0, [0, 1], {foo: 0}] * ', ' # => "0, 0, 1, {:foo=>0}" * * If +array+ is empty, returns a new empty \String: * [] * ',' # => "" + * * --- * * Raises an exception if the argument is not an Integer-convertible object -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/