array.c: [DOC] correct Array#sort rdoc [ci skip]

* array.c (rb_ary_sort_bang, rb_ary_sort): [DOC] correct block
  return values, which may be a negative or positive integer, not
  ony -1 or +1.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-09-15 04:13:15 +00:00
Родитель 5a0dc59a01
Коммит ca5c9084dc
2 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Tue Sep 15 13:13:13 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_sort_bang, rb_ary_sort): [DOC] correct block
return values, which may be a negative or positive integer, not
ony -1 or +1.
Tue Sep 15 12:49:10 2015 Jason Barnabe <jason.barnabe@gmail.com>
* array.c (rb_ary_sort_bang, rb_ary_sort): [DOC] Correct

Просмотреть файл

@ -2446,8 +2446,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 +b+ follows +a+, +0+ when +a+ and +b+ are equivalent, or ++1+
* when +a+ follows +b+.
* an integer less than 0 when +b+ follows +a+, +0+ when +a+ and +b+
* are equivalent, or an integer greater than 0 when +a+ follows +b+.
*
* See also Enumerable#sort_by.
*
@ -2527,8 +2527,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 +b+ follows +a+, +0+ when +a+ and +b+ are equivalent, or ++1+
* when +a+ follows +b+.
* an integer less than 0 when +b+ follows +a+, +0+ when +a+ and +b+
* are equivalent, or an integer greater than 0 when +a+ follows +b+.
*
*
* See also Enumerable#sort_by.