mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Reference to the idiom from Array#sort
This commit is contained in:
parent
9394d2084c
commit
d31c15d81f
Notes:
git
2025-02-27 04:16:19 +00:00
1 changed files with 3 additions and 0 deletions
3
array.c
3
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].
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue