summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-13 19:04:02 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-13 19:04:02 +0000
commit41a486e96685fbd34aa356d43da18491c6da828d (patch)
tree0f7b8d1c9b5ebf39d7f98a162339511ebb1014a2 /string.c
parentee49d04540fc177062e3b27a042a8504d083fbb7 (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/string.c b/string.c
index 60cb5542ce..691e99eca9 100644
--- a/string.c
+++ b/string.c
@@ -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