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 236980e25b..c3b47fb47b 100644
--- a/string.c
+++ b/string.c
@@ -5703,7 +5703,7 @@ rb_str_each_char(VALUE str)
* when applied to Unicode strings. If a block is given, it iterates
* over each character in the string.
*
- * "foo\u0635".chars.to_a #=> [102, 111, 111, 1589]
+ * "foo\u0635".codepoints.to_a #=> [102, 111, 111, 1589]
*/
/*