From 5363dce93848410097471355cd578d1e68fa2c93 Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 4 Nov 2014 03:33:50 +0000 Subject: * 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 --- object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index f330aeeab5..5834c81e74 100644 --- a/object.c +++ b/object.c @@ -3018,8 +3018,9 @@ rb_String(VALUE val) * call-seq: * String(arg) -> string * - * Converts arg to a String by calling its - * to_s method. + * Returns arg as an String. + * + * First tries to call its to_str method, then its to_s method. * * String(self) #=> "main" * String(self.class) #=> "Object" -- cgit v1.2.3