summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-10-23 21:34:55 +0100
committerPeter Zhu <peter@peterzhu.ca>2025-10-23 18:12:59 -0400
commit0227ad07a41eea95349a9f26946dbf00291da17f (patch)
tree598ba4c4b2d24173b0292f0ed8caec98eb022b54 /string.c
parent8b0d405337781205412f7eb8fd7d3ae684f3469a (diff)
[DOC] Tweaks for String#strip!
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 d90f606b82..eec64ac63f 100644
--- a/string.c
+++ b/string.c
@@ -10482,10 +10482,12 @@ rb_str_rstrip(VALUE str)
* call-seq:
* strip! -> self or nil
*
- * Like String#strip, except that any modifications are made in +self+;
- * returns +self+ if any modification are made, +nil+ otherwise.
+ * Like String#strip, except that:
*
- * Related: String#lstrip!, String#strip!.
+ * - Any modifications are made to +self+.
+ * - Returns +self+ if any modification are made, +nil+ otherwise.
+ *
+ * Related: see {Modifying}[rdoc-ref:String@Modifying].
*/
static VALUE