summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 941fb4b..e33ef17 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)) {