summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2025-10-23 17:13:37 -0500
committerGitHub <noreply@github.com>2025-10-23 18:13:37 -0400
commitab94bce885314d0065514a88cd356a89642292b0 (patch)
treeed57e3e7e703392035407ecfc77bed1044788b24 /string.c
parent0227ad07a41eea95349a9f26946dbf00291da17f (diff)
[DOC] Tweaks for String#squeeze!
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/string.c b/string.c
index eec64ac63f..373c76a26f 100644
--- a/string.c
+++ b/string.c
@@ -8903,8 +8903,12 @@ rb_str_delete(int argc, VALUE *argv, VALUE str)
* call-seq:
* squeeze!(*selectors) -> self or nil
*
- * Like String#squeeze, but modifies +self+ in place.
- * Returns +self+ if any changes were made, +nil+ otherwise.
+ * Like String#squeeze, except that:
+ *
+ * - Characters are squeezed in +self+ (not in a copy of +self+).
+ * - Returns +self+ if any changes are made, +nil+ otherwise.
+ *
+ * Related: See {Modifying}[rdoc-ref:String@Modifying].
*/
static VALUE