ruby-changes:52545
From: marcandre <ko1@a...>
Date: Sun, 16 Sep 2018 11:49:49 +0900 (JST)
Subject: [ruby-changes:52545] marcandRe: r64757 (trunk): [DOC] Improve String#strip documentation.
marcandre 2018-09-16 11:49:44 +0900 (Sun, 16 Sep 2018) New Revision: 64757 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64757 Log: [DOC] Improve String#strip documentation. Patch by Josh Goldberg. [Fix GH-1933] [ci skip] Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 64756) +++ string.c (revision 64757) @@ -9015,6 +9015,7 @@ rb_str_strip_bang(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L9015 * * " hello ".strip #=> "hello" * "\tgoodbye\r\n".strip #=> "goodbye" + * "hello".strip #=> "hello" * "\x00\t\n\v\f\r ".strip #=> "" */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/