summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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