Project

General

Profile

Bug #10125 » 0001-array.c-Fixing-documentation-about-comparisons-in-so.patch

maxtruc (Maxime Réty), 08/11/2014 04:57 PM

View differences:

array.c
* or using an optional code block.
*
* The block must implement a comparison between +a+ and +b+, and return
* +-1+, when +a+ follows +b+, +0+ when +a+ and +b+ are equivalent, or ++1+
* if +b+ follows +a+.
* +-1+ when +b+ follows +a+, +0+ when +a+ and +b+ are equivalent, or ++1+
* if +a+ follows +b+.
*
* See also Enumerable#sort_by.
*
......
* or using an optional code block.
*
* The block must implement a comparison between +a+ and +b+, and return
* +-1+, when +a+ follows +b+, +0+ when +a+ and +b+ are equivalent, or ++1+
* if +b+ follows +a+.
* +-1+ when +b+ follows +a+, +0+ when +a+ and +b+ are equivalent, or ++1+
* if +a+ follows +b+.
*
*
* See also Enumerable#sort_by.
    (1-1/1)