[前][次][番号順一覧][スレッド一覧]

ruby-changes:17327

From: naruse <ko1@a...>
Date: Fri, 24 Sep 2010 16:01:42 +0900 (JST)
Subject: [ruby-changes:17327] Ruby:r29332 (trunk): * string.c (rb_str_to_i): fix rdoc: String#to_i raises an

naruse	2010-09-24 15:52:25 +0900 (Fri, 24 Sep 2010)

  New Revision: 29332

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29332

  Log:
    * 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@r...>

  Modified files:
    trunk/ChangeLog
    trunk/string.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29331)
+++ ChangeLog	(revision 29332)
@@ -1,5 +1,10 @@
-2010-09-24  NARUSE, Yui  <naruse@r...>
+Fri Sep 24 15:50:43 2010  NARUSE, Yui  <naruse@r...>
 
+	* 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@r...>
+
 	* string.c (rb_str_rindex): use rb_enc_prev_char instead of repeated str_nth.
 	  patched by Michael Selig [ruby-core:32498]
 
Index: string.c
===================================================================
--- string.c	(revision 29331)
+++ string.c	(revision 29332)
@@ -4070,7 +4070,7 @@
  *  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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]