diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-12 16:27:45 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-12 16:27:45 +0000 |
commit | 9c2c599ee8c54f3a3b9a19027ec0e8108bd3291a (patch) | |
tree | 4fa5d9e670ab0c3cfd612c9b79a675ab899cfdf5 /enum.c | |
parent | 0510f2032822dc66825978275f273a98ac5d70d9 (diff) |
merge revision(s) 57771:
documentation for sort methods
* array.c: [DOC] fix grammar in Array#sort, #sort!, #sort_by!,
move references below the code example, add a missing reference.
* enum.c: [DOC] fix grammar in Enumerable#sort, #sort_by.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -935,7 +935,7 @@ enum_first(int argc, VALUE *argv, VALUE obj) * 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+. * - * The result is not guaranteed as stable. When comparison of two + * The result is not guaranteed to be stable. When the comparison of two * elements returns +0+, the order of the elements is unpredictable. * * %w(rhea kea flea).sort #=> ["flea", "kea", "rhea"] @@ -1011,7 +1011,7 @@ sort_by_cmp(const void *ap, const void *bp, void *data) * Sorts <i>enum</i> using a set of keys generated by mapping the * values in <i>enum</i> through the given block. * - * The result is not guaranteed as stable. When two keys are equal, + * The result is not guaranteed to be stable. When two keys are equal, * the order of the corresponding elements is unpredictable. * * If no block is given, an enumerator is returned instead. |