trpl-zh-cn/listings/ch08-common-collections/no-listing-02-format/src/main.rs

10 lines
200 B
Rust
Raw Normal View History

2022-02-06 16:43:51 +08:00
fn main() {
// ANCHOR: here
let s1 = String::from("tic");
let s2 = String::from("tac");
let s3 = String::from("toe");
2023-01-16 17:34:52 +08:00
let s = format!("{s1}-{s2}-{s3}");
2022-02-06 16:43:51 +08:00
// ANCHOR_END: here
}