summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2025-10-21 15:44:03 -0500
committerGitHub <noreply@github.com>2025-10-21 16:44:03 -0400
commitcaff9b9065750ec74e4fc6b3d222e7ab780fb1e0 (patch)
tree632d1bda450135434c9b73d941f9ff5ba0d651ba /string.c
parent3b87e76cc6a2ab7f6e625953b0954edfb9e5c647 (diff)
[DOC] Tweaks for String#rstrip (#14881)
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 65b9d407f7..b7b89eb6dd 100644
--- a/string.c
+++ b/string.c
@@ -10443,7 +10443,7 @@ rb_str_rstrip_bang(VALUE str)
* call-seq:
* rstrip -> new_string
*
- * Returns a copy of the receiver with trailing whitespace removed;
+ * Returns a copy of +self+ with trailing whitespace removed;
* see {Whitespace in Strings}[rdoc-ref:String@Whitespace+in+Strings]:
*
* whitespace = "\x00\t\n\v\f\r "
@@ -10451,7 +10451,7 @@ rb_str_rstrip_bang(VALUE str)
* s # => "\u0000\t\n\v\f\r abc\u0000\t\n\v\f\r "
* s.rstrip # => "\u0000\t\n\v\f\r abc"
*
- * Related: String#lstrip, String#strip.
+ * Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].
*/
static VALUE