From: Peter Zhu Date: Fri, 4 Oct 2024 17:35:56 +0000 (-0400) Subject: [DOC] Minor adjustment for Array#max X-Git-Tag: v3_4_0_preview2~32 X-Git-Url: https://repo.or.cz/ruby.git/commitdiff_plain/c7dc7da2ee29322980a143d7125e22c11b540012 [DOC] Minor adjustment for Array#max --- diff --git a/array.c b/array.c index cc1f927b0e..905bfd7846 100644 --- a/array.c +++ b/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 self.size - 1 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"