From 0b4f6bf0432edd048f835a92c026c957a73caa56 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 9 Sep 2006 16:19:33 +0000 Subject: * file.c (rb_f_test): test(0) should not have any special meaning. [ruby-dev:29425] * file.c (rb_f_test): properer error message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 59b81b44e..dc389b16f 100644 --- a/string.c +++ b/string.c @@ -2501,12 +2501,12 @@ rb_str_to_s(VALUE str) * call-seq: * str.inspect => string * - * Returns a printable version of _str_, with special characters - * escaped. + * Returns a printable version of _str_, srrounded by quote marks, + * with special characters escaped. * * str = "hello" - * str[3] = 8 - * str.inspect #=> "hel\010o" + * str[3] = "\b" + * str.inspect #=> "\"hel\bo\"" */ VALUE -- cgit