From 9e3a16220c33201229ad6ec99bf179c7c41d2f58 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Mon, 8 Sep 2025 14:10:24 +0100 Subject: [PATCH] [DOC] Tweaks for String#lstrip! --- string.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/string.c b/string.c index 01cfc9c175..20873a35a5 100644 --- a/string.c +++ b/string.c @@ -10361,10 +10361,12 @@ lstrip_offset(VALUE str, const char *s, const char *e, rb_encoding *enc) * call-seq: * lstrip! -> self or nil * - * Like String#lstrip, except that any modifications are made in +self+; - * returns +self+ if any modification are made, +nil+ otherwise. + * Like String#lstrip, except that: * - * Related: String#rstrip!, 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