summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-03 07:36:55 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-03 07:36:55 +0000
commit2b692644d9969438d47423c77f7fceb46ef5a32b (patch)
treeb1314c89b3991734b8696acd56250077aaf7fdb6
parent22f6e2e771ef689f5408b094dff38be78ab9ba7f (diff)
* NEWS: add Array#sort_by!.
* array.c (rb_ary_sort_by_bang): RDoc update. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--NEWS3
-rw-r--r--array.c4
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8dffe33daf..342d5a2adf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Feb 3 16:36:06 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * array.c (rb_ary_sort_by_bang): RDoc update.
+
+ * NEWS: add Array#sort_by!.
+
Tue Feb 3 16:23:16 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): new
diff --git a/NEWS b/NEWS
index 89b975baa1..635111abf7 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,9 @@ with all sufficient information, see the ChangeLog file.
* builtin classes
+ * Array
+ * Array#sort_by!
+
* IO
* IO.pipe takes a block.
diff --git a/array.c b/array.c
index 59e3fa737e..13bf3b674e 100644
--- a/array.c
+++ b/array.c
@@ -1853,8 +1853,8 @@ sort_by_i(VALUE i)
* call-seq:
* array.sort_by! {| obj | block } -> array
*
- * Sorts <i>enum</i> in place using a set of keys generated by mapping the
- * values in <i>enum</i> through the given block.
+ * Sorts <i>array</i> in place using a set of keys generated by mapping the
+ * values in <i>array</i> through the given block.
*/
static VALUE