[DOC] Tweaks for String#*
This commit is contained in:
parent
d71e171464
commit
d2de59798c
Notes:
git
2025-05-05 07:20:55 +00:00
9
string.c
9
string.c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user