Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* array.c: Typo in Array#delete by Timo Sand [GH fixes #258]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit d883d756d109d6d54201311fb0de85ee4967db3b 1 parent ade879e
Zachary Scott zzak authored
Showing with 6 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +2 −1  array.c
4 ChangeLog
View
@@ -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.
3  array.c
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.