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 + + * array.c (rb_ary_sort_by_bang): RDoc update. + + * NEWS: add Array#sort_by!. + Tue Feb 3 16:23:16 2009 Tanaka Akira * 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 enum in place using a set of keys generated by mapping the - * values in enum through the given block. + * Sorts array in place using a set of keys generated by mapping the + * values in array through the given block. */ static VALUE