Skip to content

Commit d31c15d

Browse files
committed
[DOC] Reference to the idiom from Array#sort
1 parent 9394d20 commit d31c15d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

array.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3474,6 +3474,9 @@ rb_ary_sort_bang(VALUE ary)
34743474
* When the block returns zero, the order for +a+ and +b+ is indeterminate,
34753475
* and may be unstable.
34763476
*
3477+
* See an example in Numeric#nonzero? for the idiom to sort more
3478+
* complex structure.
3479+
*
34773480
* Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].
34783481
*/
34793482

0 commit comments

Comments
 (0)