summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-29 15:56:58 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-29 15:56:58 +0000
commitaf574c63b593cb489ceccc15a2b38583fa396e76 (patch)
treeca193ff9b1729ccc0e116accc4a13156281086ea /string.c
parent78400919bad04fcba0b9dee75b6217933c958fbc (diff)
* string.c: [DOC] Specify to_s on subclasses [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/string.c b/string.c
index b3204fce2d..5de795a29a 100644
--- a/string.c
+++ b/string.c
@@ -4877,7 +4877,9 @@ rb_str_to_f(VALUE str)
* str.to_s -> str
* str.to_str -> str
*
- * Returns the receiver.
+ * Returns +self+.
+ *
+ * If called on a subclass of String, converts the receiver to a String object.
*/
static VALUE