ruby-changes:52856
From: stomar <ko1@a...>
Date: Sun, 14 Oct 2018 04:04:06 +0900 (JST)
Subject: [ruby-changes:52856] stomar:r65068 (trunk): string.c: [DOC] add example code for String#strip!
stomar 2018-10-14 04:04:02 +0900 (Sun, 14 Oct 2018) New Revision: 65068 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65068 Log: string.c: [DOC] add example code for String#strip! Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 65067) +++ string.c (revision 65068) @@ -8981,6 +8981,9 @@ rb_str_rstrip(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L8981 * <code>nil</code> if <i>str</i> was not altered. * * Refer to <code>strip</code> for the definition of whitespace. + * + * " hello ".strip! #=> "hello" + * "hello".strip! #=> nil */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/