From 68ac487d194a225caee05bf48daeb2ccb4163e1e Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 5 Feb 2009 17:53:26 +0000 Subject: [PATCH] * string.c (rb_str_each_codepoint): update RDoc for String#codepoints. a patch from Radoslaw Bulat in [ruby-core:21835] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ string.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2173e7e3e5..21eb2ed4d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Feb 6 02:51:59 2009 Yukihiro Matsumoto + + * string.c (rb_str_each_codepoint): update RDoc for + String#codepoints. a patch from Radoslaw Bulat in + [ruby-core:21835] + Fri Feb 6 01:09:13 2009 Yusuke Endoh * cont.c (cont_mark, cont_capture, cont_restore_1): use #else instead diff --git a/string.c b/string.c index ca06bf7253..802e9379bf 100644 --- a/string.c +++ b/string.c @@ -5750,7 +5750,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] */ /*