diff options
| author | BurdetteLamar <burdettelamar@yahoo.com> | 2025-10-23 21:12:54 +0100 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-10-23 18:14:09 -0400 |
| commit | 230276dd42e49059c920c3230268ebed776e74a1 (patch) | |
| tree | f2e2d73ce104d0048d9eaf816e5e999afc3d6f4f | |
| parent | ab94bce885314d0065514a88cd356a89642292b0 (diff) | |
[DOC] Tweaks for String#strip
| -rw-r--r-- | string.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10525,15 +10525,15 @@ rb_str_strip_bang(VALUE str) * call-seq: * strip -> new_string * - * Returns a copy of the receiver with leading and trailing whitespace removed; + * Returns a copy of +self+ with leading and trailing whitespace removed; * see {Whitespace in Strings}[rdoc-ref:String@Whitespace+in+Strings]: * * whitespace = "\x00\t\n\v\f\r " * s = whitespace + 'abc' + whitespace - * s # => "\u0000\t\n\v\f\r abc\u0000\t\n\v\f\r " + * # => "\u0000\t\n\v\f\r abc\u0000\t\n\v\f\r " * s.strip # => "abc" * - * Related: String#lstrip, String#rstrip. + * Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String]. */ static VALUE |
