📜  如何在 rust 代码示例中连接两个 &str

📅  最后修改于: 2022-03-11 14:49:25.310000             🧑  作者: Mango

代码示例1
// using 2 variables
let new_string = format!("{}{}", first_string, second_string);
// using 2 literals
let new_string = format!("{}{}", "first string ", "second string");