Function quickdash::utilities::mul_str

source ·
pub fn mul_str(what: &str, n: usize) -> String
Expand description

Create a string consisting of n repetitions of what.

Examples

assert_eq!(
	quickdash::utilities::mul_str("LOL! ", 3),
	"LOL! LOL! LOL! ".to_string()
);