summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-09 16:19:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-09 16:19:33 +0000
commit0f785c3840d3dab5eb59ecca82e9a045dfdd77c0 (patch)
treee6a32b633e3ff92ee6a6f50b41ffb70cb9299b66 /string.c
parent7d3fc8ff2b6205ebc0123ac6196acf14257a5cf5 (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@10900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/string.c b/string.c
index 59b81b44e6..dc389b16fb 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