trpl-zh-cn/listings/ch08-common-collections/no-listing-01-concat-multiple-strings/src/main.rs
2022-02-06 16:43:51 +08:00

10 lines
201 B
Rust
Executable File

fn main() {
// ANCHOR: here
let s1 = String::from("tic");
let s2 = String::from("tac");
let s3 = String::from("toe");
let s = s1 + "-" + &s2 + "-" + &s3;
// ANCHOR_END: here
}