From b146eae3b5e9154d3fb692e8fee200d602f57149 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Wed, 9 Jul 2025 13:01:57 -0500 Subject: [PATCH] [DOC] Tweaks for String#clear --- string.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/string.c b/string.c index 5c703b4bdf..f61f1cd0a0 100644 --- a/string.c +++ b/string.c @@ -6666,9 +6666,11 @@ rb_str_replace(VALUE str, VALUE str2) * * Removes the contents of +self+: * - * s = 'foo' # => "foo" - * s.clear # => "" + * s = 'foo' + * s.clear # => "" + * s # => "" * + * Related: see {Modifying}[rdoc-ref:String@Modifying]. */ static VALUE