ruby-changes:54681
From: samuel <ko1@a...>
Date: Mon, 21 Jan 2019 19:56:34 +0900 (JST)
Subject: [ruby-changes:54681] samuel:r66897 (trunk): Improvements to documentation.
samuel 2019-01-21 19:56:29 +0900 (Mon, 21 Jan 2019) New Revision: 66897 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66897 Log: Improvements to documentation. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 66896) +++ string.c (revision 66897) @@ -6001,11 +6001,11 @@ rb_str_inspect(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L6001 * call-seq: * str.dump -> new_str * - * Produces a version of +str+ with all non-printing characters replaced by - * <code>\xnn</code> notation and all special characters escaped. + * Produces a quoted version of +str+ with all non-printing characters replaced + * by <code>\xnn</code> 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. + * This method can be used for round-trip: if the resulting +new_str+ is + * eval'ed, it will produce the original string. * * "hello \n ''".dump #=> "\"hello \\n ''\"" */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/