aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/array.c b/array.c
index d101d3bb6a..9f6e538de7 100644
--- a/array.c
+++ b/array.c
@@ -2445,9 +2445,9 @@ sort_2(const void *ap, const void *bp, void *dummy)
* Comparisons for the sort will be done using the <code><=></code> operator
* 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+.
+ * The block must implement a comparison between +a+ and +b+ and return
+ * +-1+ when +b+ follows +a+, +0+ when +a+ and +b+ are equivalent, or ++1+
+ * when +a+ follows +b+.
*
* See also Enumerable#sort_by.
*
@@ -2526,9 +2526,9 @@ rb_ary_sort_bang(VALUE ary)
* Comparisons for the sort will be done using the <code><=></code> operator
* 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+.
+ * The block must implement a comparison between +a+ and +b+ and return
+ * +-1+ when +b+ follows +a+, +0+ when +a+ and +b+ are equivalent, or ++1+
+ * when +a+ follows +b+.
*
*
* See also Enumerable#sort_by.