From c49a1d11b99041e5ae2c2ff26cdf589af1a0f280 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 24 Sep 2010 06:52:25 +0000 Subject: * string.c (rb_str_to_i): fix rdoc: String#to_i raises an exception when base is invalid. [ruby-core:31685] Fri Sep 24 15:28:35 2010 NARUSE, Yui git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 ++++++- string.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5493ddfe27..e94012d392 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2010-09-24 NARUSE, Yui +Fri Sep 24 15:50:43 2010 NARUSE, Yui + + * string.c (rb_str_to_i): fix rdoc: String#to_i raises an + exception when base is invalid. [ruby-core:31685] + +Fri Sep 24 15:28:35 2010 NARUSE, Yui * string.c (rb_str_rindex): use rb_enc_prev_char instead of repeated str_nth. patched by Michael Selig [ruby-core:32498] diff --git a/string.c b/string.c index c07ddc9438..835371cd4a 100644 --- a/string.c +++ b/string.c @@ -4070,7 +4070,7 @@ rb_str_include(VALUE str, VALUE arg) * integer base base (between 2 and 36). Extraneous characters past the * end of a valid number are ignored. If there is not a valid number at the * start of str, 0 is returned. This method never raises an - * exception. + * exception when base is valid. * * "12345".to_i #=> 12345 * "99 red balloons".to_i #=> 99 -- cgit v1.2.3