From 58b5838d4ec07cef0b02e553914c8ee5a95962ed Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 15 Dec 2011 01:44:58 +0000 Subject: * array.c (rb_ary_reject_bang, rb_ary_delete_if): update rdoc. documentation from Thomas Leitner in [ruby-core:41616]. [Bug #5752] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'array.c') diff --git a/array.c b/array.c index 90d129d5ff..0bb692aad7 100644 --- a/array.c +++ b/array.c @@ -2606,6 +2606,8 @@ ary_reject_bang(VALUE ary) * Equivalent to Array#delete_if, deleting elements from * +self+ for which the block evaluates to true, but returns * nil 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. @@ -2650,6 +2652,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. -- cgit v1.2.3