repo.or.cz
/
ruby.git
/
commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
95ad0e5
)
[DOC] Minor adjustment for Array#max
author
Peter Zhu
<
[email protected]
>
Fri, 4 Oct 2024 17:35:56 +0000
(4 13:35 -0400)
committer
Peter Zhu
<
[email protected]
>
Fri, 4 Oct 2024 17:35:56 +0000
(4 13:35 -0400)
array.c
patch
|
blob
|
blame
|
history
diff --git
a/array.c
b/array.c
index
cc1f927
..
905bfd7
100644
(file)
--- 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 <tt>self.size - 1</tt> times to compare elements;
* 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"
*
* ['0', '', '000', '00'].max {|a, b| a.size <=> b.size }
* # => "000"