Skip to content

Commit 230276d

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#strip
1 parent ab94bce commit 230276d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

string.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10525,15 +10525,15 @@ rb_str_strip_bang(VALUE str)
1052510525
* call-seq:
1052610526
* strip -> new_string
1052710527
*
10528-
* Returns a copy of the receiver with leading and trailing whitespace removed;
10528+
* Returns a copy of +self+ with leading and trailing whitespace removed;
1052910529
* see {Whitespace in Strings}[rdoc-ref:String@Whitespace+in+Strings]:
1053010530
*
1053110531
* whitespace = "\x00\t\n\v\f\r "
1053210532
* s = whitespace + 'abc' + whitespace
10533-
* s # => "\u0000\t\n\v\f\r abc\u0000\t\n\v\f\r "
10533+
* # => "\u0000\t\n\v\f\r abc\u0000\t\n\v\f\r "
1053410534
* s.strip # => "abc"
1053510535
*
10536-
* Related: String#lstrip, String#rstrip.
10536+
* Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].
1053710537
*/
1053810538

1053910539
static VALUE

0 commit comments

Comments
 (0)