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

ruby-changes:36179

From: hsbt <ko1@a...>
Date: Tue, 4 Nov 2014 12:33:56 +0900 (JST)
Subject: [ruby-changes:36179] hsbt:r48260 (trunk): * object.c: fix document of Kernel.Stirng by @suzukaze

hsbt	2014-11-04 12:33:50 +0900 (Tue, 04 Nov 2014)

  New Revision: 48260

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

  Log:
    * object.c: fix document of Kernel.Stirng by @suzukaze
      [fix GH-743][ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/object.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48259)
+++ ChangeLog	(revision 48260)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Nov  4 12:33:44 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* object.c: fix document of Kernel.Stirng by @suzukaze
+	  [fix GH-743][ci skip]
+
 Tue Nov  4 12:21:45 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* lib/csv.rb: added documentation for skip_blanks option by @decasia
Index: object.c
===================================================================
--- object.c	(revision 48259)
+++ object.c	(revision 48260)
@@ -3018,8 +3018,9 @@ rb_String(VALUE val) https://github.com/ruby/ruby/blob/trunk/object.c#L3018
  *  call-seq:
  *     String(arg)   -> string
  *
- *  Converts <i>arg</i> to a <code>String</code> by calling its
- *  <code>to_s</code> method.
+ *  Returns <i>arg</i> as an <code>String</code>.
+ *
+ *  First tries to call its <code>to_str</code> method, then its <code>to_s</code> method.
  *
  *     String(self)        #=> "main"
  *     String(self.class)  #=> "Object"

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

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