[DOC] Reference to the idiom from Array#sort

This commit is contained in:
Nobuyoshi Nakada 2025-02-27 13:07:43 +09:00
parent 9394d2084c
commit d31c15d81f
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-02-27 04:16:19 +00:00

View File

@ -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].
*/