Skip to content

Commit

Permalink
Enhanced RDoc for Array
Browse files Browse the repository at this point in the history
  • Loading branch information
BurdetteLamar committed Jul 21, 2020
1 parent d29de7b commit a50750c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions array.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 # => []
*
* ---
Expand Down

0 comments on commit a50750c

Please sign in to comment.