fn main() {
let dynamicsubstring1 = "double-quoted substring1";
let dynamicsubstring2 = "double-quoted substring2";
// Using formatted string interpolation
let string = format!(
"This is a string with \"{}\", and \"{}\" inside.",
dynamicsubstring1, dynamicsubstring2
);
println!("{}", string);
}
/*
run:
This is a string with "double-quoted substring1", and "double-quoted substring2" inside.
*/