summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-22 03:05:32 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-22 03:05:32 +0000
commit4e047495165c909935041e8ab869963d6e2c852a (patch)
tree22b117fecd1b00255b58418c90b708252083f31c /array.c
parentc853e2d86e4d074e773cf06b2d9ee6519fc95c15 (diff)
* array.c (rb_ary_sort_bang): fix rdoc.
patched by burningTyger. https://github.com/ruby/ruby/pull/11 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index bdeb768118..9664626c7b 100644
--- a/array.c
+++ b/array.c
@@ -2068,8 +2068,8 @@ sort_2(const void *ap, const void *bp, void *dummy)
* <code>Enumerable#sort_by</code>.
*
* a = [ "d", "a", "e", "c", "b" ]
- * a.sort #=> ["a", "b", "c", "d", "e"]
- * a.sort {|x,y| y <=> x } #=> ["e", "d", "c", "b", "a"]
+ * a.sort! #=> ["a", "b", "c", "d", "e"]
+ * a.sort! {|x,y| y <=> x } #=> ["e", "d", "c", "b", "a"]
*/
VALUE