summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 941fb4b4f0..e33ef1775e 100644
--- a/string.c
+++ b/string.c
@@ -6709,7 +6709,7 @@ rb_str_enumerate_lines(int argc, VALUE *argv, VALUE str, int wantarray)
if (wantarray)
ary = rb_ary_new();
else
- RETURN_ENUMERATOR(str, argc, argv);
+ return SIZED_ENUMERATOR(str, argc, argv, 0);
}
if (NIL_P(rs)) {