diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | array.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Mon Mar 18 03:18:00 2013 Zachary Scott <zachary@zacharyscott.net> + + * array.c: Typo in Array#delete by Timo Sand [GH fixes #258] + Mon Mar 18 01:14:56 2013 NARUSE, Yui <naruse@ruby-lang.org> * io.c (io_fillbuf): show fd number on failure to debug. @@ -5357,7 +5357,8 @@ rb_ary_drop_while(VALUE ary) * To delete a particular element anywhere in an array, use #delete: * * arr = [1, 2, 2, 3] - * arr.delete(2) #=> [1, 3] + * arr.delete(2) #=> 2 + * arr #=> [1,3] * * A useful method if you need to remove +nil+ values from an array is * #compact: |