summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-04 03:33:50 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-04 03:33:50 +0000
commit5363dce93848410097471355cd578d1e68fa2c93 (patch)
treecbe9796761f35d95d124185e0e83003b52b0539f /object.c
parentab337e61ecb5f42384ba7d710c36faf96a454e5c (diff)
* object.c: fix document of Kernel.Stirng by @suzukaze
[fix GH-743][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/object.c b/object.c
index f330aee..5834c81 100644
--- a/object.c
+++ b/object.c
@@ -3018,8 +3018,9 @@ rb_String(VALUE val)
* 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"