diff options
author | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-13 19:04:02 +0000 |
---|---|---|
committer | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-13 19:04:02 +0000 |
commit | 41a486e96685fbd34aa356d43da18491c6da828d (patch) | |
tree | 0f7b8d1c9b5ebf39d7f98a162339511ebb1014a2 /string.c | |
parent | ee49d04540fc177062e3b27a042a8504d083fbb7 (diff) |
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
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |