mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Minor adjustment for Array#max
This commit is contained in:
parent
95ad0e5f85
commit
c7dc7da2ee
1 changed files with 1 additions and 1 deletions
2
array.c
2
array.c
|
@ -5948,7 +5948,7 @@ ary_max_opt_string(VALUE ary, long i, VALUE vmax)
|
|||
* With a block given, the block must return a numeric.
|
||||
*
|
||||
* With a block and no argument, calls the block <tt>self.size - 1</tt> times to compare elements;
|
||||
* returns the element having the maximum return value per the block:
|
||||
* returns the element having the maximum value per the block:
|
||||
*
|
||||
* ['0', '', '000', '00'].max {|a, b| a.size <=> b.size }
|
||||
* # => "000"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue