aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/array.c b/array.c
index cfe44a9015..01cabc87b9 100644
--- a/array.c
+++ b/array.c
@@ -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.