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:
9394d20
)
[DOC] Reference to the idiom from Array#sort
author
Nobuyoshi Nakada
<
[email protected]
>
Thu, 27 Feb 2025 04:07:43 +0000
(27 13:07 +0900)
committer
Nobuyoshi Nakada
<
[email protected]
>
Thu, 27 Feb 2025 04:07:43 +0000
(27 13:07 +0900)
array.c
patch
|
blob
|
blame
|
history
diff --git
a/array.c
b/array.c
index
7ba887d
..
7f1db81
100644
(file)
--- a/
array.c
+++ b/
array.c
@@
-3474,6
+3474,9
@@
rb_ary_sort_bang(VALUE ary)
* When the block returns zero, the order for +a+ and +b+ is indeterminate,
* and may be unstable.
*
+ * See an example in Numeric#nonzero? for the idiom to sort more
+ * complex structure.
+ *
* Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].
*/