RosettaCodeData/Task/Repeat-a-string/Rust/repeat-a-string-2.rust

2 lines
36 B
Plaintext

"ha".repeat(5); // ==> "hahahahaha"