Skip to content

Commit d2de597

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#*
1 parent d71e171 commit d2de597

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

string.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,13 +2843,14 @@ rb_str_opt_plus(VALUE str1, VALUE str2)
28432843

28442844
/*
28452845
* call-seq:
2846-
* string * integer -> new_string
2846+
* self * n -> new_string
28472847
*
2848-
* Returns a new +String+ containing +integer+ copies of +self+:
2848+
* Returns a new string containing +n+ copies of +self+:
28492849
*
2850-
* "Ho! " * 3 # => "Ho! Ho! Ho! "
2851-
* "Ho! " * 0 # => ""
2850+
* 'Ho!' * 3 # => "Ho!Ho!Ho!"
2851+
* 'No!' * 0 # => ""
28522852
*
2853+
* Related: see {Methods for Converting to New String}[rdoc-ref:String@Methods+for+Converting+to+New+String].
28532854
*/
28542855

28552856
VALUE

0 commit comments

Comments
 (0)