diff options
author | BurdetteLamar <burdettelamar@yahoo.com> | 2020-07-21 12:07:26 -0500 |
---|---|---|
committer | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2020-07-21 17:07:12 -0500 |
commit | d29de7b31bad1848f8baaa49b00e4203057032a7 (patch) | |
tree | a654b0eb618c86eaf8189783abbaf8422c88623d /array.c | |
parent | 8a974e0fcb3f2648dd75993b4c4a1625a50e986f (diff) |
Enhanced RDoc for Array
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3318
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -5461,7 +5461,8 @@ rb_ary_concat(VALUE x, VALUE y) * * --- * - * 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) * --- * * 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 |