ruby-changes:62352
From: BurdetteLamar <ko1@a...>
Date: Wed, 22 Jul 2020 07:07:35 +0900 (JST)
Subject: [ruby-changes:62352] a50750c8a9 (master): Enhanced RDoc for Array
https://git.ruby-lang.org/ruby.git/commit/?id=a50750c8a9 From a50750c8a960ef62b3e1dbd78b12056f0512b17d Mon Sep 17 00:00:00 2001 From: BurdetteLamar <burdettelamar@y...> Date: Tue, 21 Jul 2020 12:55:28 -0500 Subject: Enhanced RDoc for Array diff --git a/array.c b/array.c index 591ae9c..627e0fd 100644 --- a/array.c +++ b/array.c @@ -5461,15 +5461,9 @@ 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 \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 # => [] * * --- -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/