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 45a4d0e00b..518fcb9e0b 100644
--- a/string.c
+++ b/string.c
@@ -8093,7 +8093,7 @@ rb_str_enumerate_grapheme_clusters(VALUE str, int wantarray)
VALUE MAYBE_UNUSED(ary);
if (!unicode_p) {
- return rb_str_enumerate_codepoints(str, wantarray);
+ return rb_str_enumerate_chars(str, wantarray);
}
/* synchronize */