Fix a code in the Array#min documentation.
This commit is contained in:
parent
3ffca65047
commit
b6691e9737
Notes:
git
2021-08-31 20:57:12 +09:00
3
array.c
3
array.c
@ -5921,8 +5921,7 @@ ary_min_opt_string(VALUE ary, long i, VALUE vmin)
|
|||||||
*
|
*
|
||||||
* With an argument +n+ and a block, returns a new \Array with at most +n+ elements,
|
* With an argument +n+ and a block, returns a new \Array with at most +n+ elements,
|
||||||
* in ascending order per the block:
|
* in ascending order per the block:
|
||||||
* [0, 1, 2, 3].min(3) # => [0, 1, 2]
|
* ['0', '00', '000'].min(2) {|a, b| a.size <=> b.size } # => ["0", "00"]
|
||||||
* [0, 1, 2, 3].min(6) # => [0, 1, 2, 3]
|
|
||||||
*/
|
*/
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_ary_min(int argc, VALUE *argv, VALUE ary)
|
rb_ary_min(int argc, VALUE *argv, VALUE ary)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user