summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2025-08-26 13:27:42 -0500
committerGitHub <noreply@github.com>2025-08-26 14:27:42 -0400
commitdbfd0973d3f2810c6ee490f0bc84a35d6440a3f1 (patch)
treec2e19e7243802dbc207967c8ff32a47640e776c7 /string.c
parentbb9116281ba8bc9e9d1bf0c72e75bea79cf0f89b (diff)
[DOC] Tweaks for String#inspect
Diffstat (limited to 'string.c')
-rw-r--r--string.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/string.c b/string.c
index 709ada47db..01cfc9c175 100644
--- a/string.c
+++ b/string.c
@@ -7303,12 +7303,7 @@ rb_str_escape(VALUE str)
* call-seq:
* inspect -> string
*
- * Returns a printable version of +self+, enclosed in double-quotes,
- * and with special characters escaped:
- *
- * s = "foo\tbar\tbaz\n"
- * s.inspect
- * # => "\"foo\\tbar\\tbaz\\n\""
+ * :include: doc/string/inspect.rdoc
*
*/