diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7684,7 +7684,8 @@ lstrip_offset(VALUE str, const char *s, const char *e, rb_encoding *enc) * * Refer to <code>strip</code> for the definition of whitespace. * - * " hello ".lstrip #=> "hello " + * " hello ".lstrip! #=> "hello " + * "hello ".lstrip! #=> nil * "hello".lstrip! #=> nil */ @@ -7773,7 +7774,8 @@ rstrip_offset(VALUE str, const char *s, const char *e, rb_encoding *enc) * * Refer to <code>strip</code> for the definition of whitespace. * - * " hello ".rstrip #=> " hello" + * " hello ".rstrip! #=> " hello" + * " hello".rstrip! #=> nil * "hello".rstrip! #=> nil */ |