Fix a code in the Array#min documentation.

This commit is contained in:
universato 2021-05-06 07:46:57 +09:00 committed by Hiroshi SHIBATA
parent 3ffca65047
commit b6691e9737
Notes: git 2021-08-31 20:57:12 +09:00

View File

@ -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,
* in ascending order per the block:
* [0, 1, 2, 3].min(3) # => [0, 1, 2]
* [0, 1, 2, 3].min(6) # => [0, 1, 2, 3]
* ['0', '00', '000'].min(2) {|a, b| a.size <=> b.size } # => ["0", "00"]
*/
static VALUE
rb_ary_min(int argc, VALUE *argv, VALUE ary)