diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-27 09:08:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-27 09:08:17 +0000 |
commit | f75a5f40aed7f967416d701b99907585477ccf4a (patch) | |
tree | dc4f68311e72f0203193fa8e0bcf53fab25e06b4 /string.c | |
parent | dc44988fa24b429cf0f73574a5eff5a73a335c56 (diff) | |
download | ruby-f75a5f40aed7f967416d701b99907585477ccf4a.tar.gz |
Fix rdoc for String#rstrip!, lstrip! [ci skip]
* string.c (rb_str_lstrip_bang, rb_str_rstrip_bang): [DOC] Fix
ruby-doc comments for String#rstrip! and lstrip!. It looks like
dropped bang. [Fix GH-1175]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 */ |