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) * nil if str was not altered. * * Refer to strip for the definition of whitespace. + * + * " hello ".strip! #=> "hello" + * "hello".strip! #=> nil */ static VALUE