diff options
author | BurdetteLamar <burdettelamar@yahoo.com> | 2020-07-21 12:55:28 -0500 |
---|---|---|
committer | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2020-07-21 17:07:12 -0500 |
commit | a50750c8a960ef62b3e1dbd78b12056f0512b17d (patch) | |
tree | 4799b85fbcb16b8afd892f9cde5f75fe4a7c1b58 /array.c | |
parent | d29de7b31bad1848f8baaa49b00e4203057032a7 (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 | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -5461,15 +5461,9 @@ rb_ary_concat(VALUE x, VALUE y) * * --- * - * 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+: + * When argument +n+ is given, returns a new array built by concatenating the +int+ copies of +self+: * a = ['x', 'y'] * a * 3 # => ["x", "y", "x", "y", "x", "y"] - * - * If +n+ is zero, returns an new empty \Array: - * a = [0, 1] * a * 0 # => [] * * --- |