diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-17 18:19:56 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-17 18:19:56 +0000 |
commit | d883d756d109d6d54201311fb0de85ee4967db3b (patch) | |
tree | 46cb85b161b47825c7c058d4855be9bcab6213aa /array.c | |
parent | ade879ec7622ec0e9e5bd2a81df2a2d405842dfb (diff) | |
download | ruby-d883d756d109d6d54201311fb0de85ee4967db3b.tar.gz |
* 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |