[DOC] Minor adjustment for Array#min

This commit is contained in:
Peter Zhu 2024-10-04 13:36:36 -04:00
parent c7dc7da2ee
commit f77517f473

View File

@ -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 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 }
* # => ""