We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d71e171 commit d2de597Copy full SHA for d2de597
string.c
@@ -2843,13 +2843,14 @@ rb_str_opt_plus(VALUE str1, VALUE str2)
2843
2844
/*
2845
* call-seq:
2846
- * string * integer -> new_string
+ * self * n -> new_string
2847
*
2848
- * Returns a new +String+ containing +integer+ copies of +self+:
+ * Returns a new string containing +n+ copies of +self+:
2849
2850
- * "Ho! " * 3 # => "Ho! Ho! Ho! "
2851
- * "Ho! " * 0 # => ""
+ * 'Ho!' * 3 # => "Ho!Ho!Ho!"
+ * 'No!' * 0 # => ""
2852
2853
+ * Related: see {Methods for Converting to New String}[rdoc-ref:String@Methods+for+Converting+to+New+String].
2854
*/
2855
2856
VALUE
0 commit comments