aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--array.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 044dcaae9d..bf91651562 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/array.c b/array.c
index 28a7ec5766..da94b3a100 100644
--- a/array.c
+++ b/array.c
@@ -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: