summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-10-23 21:12:54 +0100
committerPeter Zhu <peter@peterzhu.ca>2025-10-23 18:14:09 -0400
commit230276dd42e49059c920c3230268ebed776e74a1 (patch)
treef2e2d73ce104d0048d9eaf816e5e999afc3d6f4f
parentab94bce885314d0065514a88cd356a89642292b0 (diff)
[DOC] Tweaks for String#strip
-rw-r--r--string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/string.c b/string.c
index 373c76a26f..55a7eebc5a 100644
--- a/string.c
+++ b/string.c
@@ -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