[DOC] Tweaks for String#clear

This commit is contained in:
BurdetteLamar 2025-07-09 13:01:57 -05:00 committed by Peter Zhu
parent 6c77a0c62b
commit b146eae3b5

View file

@ -6666,9 +6666,11 @@ rb_str_replace(VALUE str, VALUE str2)
*
* Removes the contents of +self+:
*
* s = 'foo' # => "foo"
* s = 'foo'
* s.clear # => ""
* s # => ""
*
* Related: see {Modifying}[rdoc-ref:String@Modifying].
*/
static VALUE