diff options
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |