diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-24 06:52:25 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-24 06:52:25 +0000 |
commit | c49a1d11b99041e5ae2c2ff26cdf589af1a0f280 (patch) | |
tree | 4092ed924a8a497b351cef406cfbf31d2787a9f4 /string.c | |
parent | 955507313be5003ae132bd92344569da9e7218da (diff) | |
download | bundler-c49a1d11b99041e5ae2c2ff26cdf589af1a0f280.tar.gz |
* 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 <naruse@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4070,7 +4070,7 @@ rb_str_include(VALUE str, VALUE arg) * integer base <i>base</i> (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 <i>str</i>, <code>0</code> is returned. This method never raises an - * exception. + * exception when <i>base</i> is valid. * * "12345".to_i #=> 12345 * "99 red balloons".to_i #=> 99 |