[DOC] Tweaks for String#*

This commit is contained in:
BurdetteLamar 2025-05-03 12:24:54 -05:00 committed by Peter Zhu
parent d71e171464
commit d2de59798c
Notes: git 2025-05-05 07:20:55 +00:00

View File

@ -2843,13 +2843,14 @@ rb_str_opt_plus(VALUE str1, VALUE str2)
/*
* call-seq:
* string * integer -> new_string
* self * n -> new_string
*
* Returns a new +String+ containing +integer+ copies of +self+:
* Returns a new string containing +n+ copies of +self+:
*
* "Ho! " * 3 # => "Ho! Ho! Ho! "
* "Ho! " * 0 # => ""
* 'Ho!' * 3 # => "Ho!Ho!Ho!"
* 'No!' * 0 # => ""
*
* Related: see {Methods for Converting to New String}[rdoc-ref:String@Methods+for+Converting+to+New+String].
*/
VALUE