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:
parent
ee49d04540
commit
41a486e966
3
string.c
3
string.c
@ -8981,6 +8981,9 @@ rb_str_rstrip(VALUE str)
|
|||||||
* <code>nil</code> if <i>str</i> was not altered.
|
* <code>nil</code> if <i>str</i> was not altered.
|
||||||
*
|
*
|
||||||
* Refer to <code>strip</code> for the definition of whitespace.
|
* Refer to <code>strip</code> for the definition of whitespace.
|
||||||
|
*
|
||||||
|
* " hello ".strip! #=> "hello"
|
||||||
|
* "hello".strip! #=> nil
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user