[DOC] Minor adjustment for Array#min
This commit is contained in:
parent
c7dc7da2ee
commit
f77517f473
2
array.c
2
array.c
@ -6125,7 +6125,7 @@ ary_min_opt_string(VALUE ary, long i, VALUE vmin)
|
|||||||
* With a block given, the block must return a numeric.
|
* 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;
|
* With a block and no argument, calls the block <tt>self.size - 1</tt> times to compare elements;
|
||||||
* returns the element having the minimum return value per the block:
|
* returns the element having the minimum value per the block:
|
||||||
*
|
*
|
||||||
* ['0', '', '000', '00'].min {|a, b| a.size <=> b.size }
|
* ['0', '', '000', '00'].min {|a, b| a.size <=> b.size }
|
||||||
* # => ""
|
* # => ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user