1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

string.c: [DOC] add example code for String#strip!

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
stomar 2018-10-13 19:04:02 +00:00
parent ee49d04540
commit 41a486e966

View file

@ -8981,6 +8981,9 @@ rb_str_rstrip(VALUE str)
* <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