summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-15 03:49:12 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-15 03:49:12 (GMT)
commit5a0dc59a01c5b10f8b42f32eaef87f902060e852 (patch)
treeba891976da161e3ad328b34afc1302e0bd920ca3 /array.c
parent072748b34625afcbf80d825aeac42fbd2e3aab0d (diff)
array.c: [DOC] correct Array#sort rdoc [ci skip]
* array.c (rb_ary_sort_bang, rb_ary_sort): [DOC] Correct description of array sort block return values. And also fix up the grammar a bit. [Fix GH-1020] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 d101d3b..9f6e538 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.