diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-15 01:44:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-15 01:44:58 +0000 |
commit | 15f26afdf0cf3f188a20456512c829290187b68d (patch) | |
tree | 8f488d6eecad7f15ebfa18556621ebb3ec217dd6 /array.c | |
parent | f281353ffda7672f668a49090314fc9d2384a529 (diff) | |
download | ruby-15f26afdf0cf3f188a20456512c829290187b68d.tar.gz |
* array.c (rb_ary_reject_bang, rb_ary_delete_if): update rdoc.
documentation from Thomas Leitner <t_leitner AT gmx.at> in
[ruby-core:41616]. [Bug #5752]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2643,6 +2643,8 @@ ary_reject_bang(VALUE ary) * Equivalent to Array#delete_if, deleting elements from * +self+ for which the block evaluates to true, but returns * <code>nil</code> if no changes were made. + * The array is changed instantly every time the block is called and + * not after the iteration is over. * See also Enumerable#reject and Array#delete_if. * * If no block is given, an enumerator is returned instead. @@ -2687,6 +2689,8 @@ rb_ary_reject(VALUE ary) * * Deletes every element of +self+ for which +block+ evaluates * to true. + * The array is changed instantly every time the block is called and + * not after the iteration is over. * See also Array#reject! * * If no block is given, an enumerator is returned instead. |