From 6891a1cd5ddd9e5e07d537060a257abaa6833648 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 21 Jan 2019 08:51:51 +0000 Subject: string.c (rb_str_dump): Fix the rdoc * Officially states that String#dump is intended for round-trip. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/string.c b/string.c index ccf4796d3b..3741d449f4 100644 --- a/string.c +++ b/string.c @@ -6002,7 +6002,10 @@ rb_str_inspect(VALUE str) * str.dump -> new_str * * Produces a version of +str+ with all non-printing characters replaced by - * \nnn notation and all special characters escaped. + * \xnn notation and all special characters escaped. + * + * This API is intended for round-trip: if the result string is eval'ed, + * it produces the original string. * * "hello \n ''".dump #=> "\"hello \\n ''\"" */ -- cgit v1.2.3