Skip to content

Commit

Permalink
Fix a code in the Array#min documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
universato authored and hsbt committed Aug 31, 2021
1 parent 3ffca65 commit b6691e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions array.c
Expand Up @@ -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)
Expand Down

0 comments on commit b6691e9

Please sign in to comment.