summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-17 18:19:56 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-17 18:19:56 +0000
commitd883d756d109d6d54201311fb0de85ee4967db3b (patch)
tree46cb85b161b47825c7c058d4855be9bcab6213aa /array.c
parentade879ec7622ec0e9e5bd2a81df2a2d405842dfb (diff)
* 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
Diffstat (limited to 'array.c')
-rw-r--r--array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/array.c b/array.c
index 28a7ec5..da94b3a 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: