1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Enhanced RDoc for Array

This commit is contained in:
BurdetteLamar 2020-07-21 12:55:28 -05:00 committed by Burdette Lamar
parent d29de7b31b
commit a50750c8a9
Notes: git 2020-07-22 07:07:43 +09:00

View file

@ -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 # => []
*
* ---