summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-10-19 21:44:05 +0100
committerPeter Zhu <peter@peterzhu.ca>2025-10-20 21:37:26 -0400
commite930bd3eae441df07ded74d97dd76c0d700fbdb3 (patch)
treef9b86e66fedb6686f9e436e350b2363925c16250 /string.c
parent17368234bfd0b37c58a4b694d764d42e2cad8880 (diff)
[DOC] Tweaks for String#rstrip!
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/string.c b/string.c
index 47de66eca6..d24435ba59 100644
--- a/string.c
+++ b/string.c
@@ -10409,10 +10409,12 @@ rstrip_offset(VALUE str, const char *s, const char *e, rb_encoding *enc)
* call-seq:
* rstrip! -> self or nil
*
- * Like String#rstrip, except that any modifications are made in +self+;
- * returns +self+ if any modification are made, +nil+ otherwise.
+ * Like String#rstrip, except that:
*
- * Related: String#lstrip!, String#strip!.
+ * - Performs stripping in +self+ (not in a copy of +self+).
+ * - Returns +self+ if any characters are stripped, +nil+ otherwise.
+ *
+ * Related: see {Modifying}[rdoc-ref:String@Modifying].
*/
static VALUE