summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 1c5c41e092..128f7de704 100644
--- a/array.c
+++ b/array.c
@@ -922,7 +922,7 @@ rb_ary_delete(ary, item)
if (rb_iterator_p()) {
return rb_yield(item);
}
- return ary;
+ return Qnil;
}
else {
RARRAY(ary)->len = i2;