From 1169a41d5425cb3e222abf5cfbfd8401552629ba Mon Sep 17 00:00:00 2001 From: maximerety Date: Mon, 11 Aug 2014 18:52:08 +0200 Subject: [PATCH] array.c Fixing documentation about comparisons in sort and sort! (they were backwards) --- array.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/array.c b/array.c index 5d327bc..8f840b8 100644 --- a/array.c +++ b/array.c @@ -2434,8 +2434,8 @@ sort_2(const void *ap, const void *bp, void *dummy) * 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. * @@ -2515,8 +2515,8 @@ rb_ary_sort_bang(VALUE ary) * 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.9.0