From 36884275bbf1220c64af09e42e9fc3b0c4f8bf72 Mon Sep 17 00:00:00 2001 From: burningTyger Date: Thu, 10 Mar 2011 11:35:32 -0800 Subject: [PATCH] fix typo for sort! docs --- array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/array.c b/array.c index bdeb768118f05f..9664626c7bce9f 100644 --- a/array.c +++ b/array.c @@ -2068,8 +2068,8 @@ sort_2(const void *ap, const void *bp, void *dummy) * Enumerable#sort_by. * * 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