Skip to content

Commit 9e3a162

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#lstrip!
1 parent d524e79 commit 9e3a162

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

string.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10361,10 +10361,12 @@ lstrip_offset(VALUE str, const char *s, const char *e, rb_encoding *enc)
1036110361
* call-seq:
1036210362
* lstrip! -> self or nil
1036310363
*
10364-
* Like String#lstrip, except that any modifications are made in +self+;
10365-
* returns +self+ if any modification are made, +nil+ otherwise.
10364+
* Like String#lstrip, except that:
10365+
*
10366+
* - Performs stripping in +self+ (not in a copy of +self+).
10367+
* - Returns +self+ if any characters are stripped, +nil+ otherwise.
1036610368
*
10367-
* Related: String#rstrip!, String#strip!.
10369+
* Related: see {Modifying}[rdoc-ref:String@Modifying].
1036810370
*/
1036910371

1037010372
static VALUE

0 commit comments

Comments
 (0)