summaryrefslogtreecommitdiffstats
path: root/src/doc/book/listings/ch08-common-collections/listing-08-16/src/main.rs
blob: db57cddba307f89464d8f01b9512ab08545445fb (plain)
1
2
3
4
5
6
7
8
fn main() {
    // ANCHOR: here
    let mut s1 = String::from("foo");
    let s2 = "bar";
    s1.push_str(s2);
    println!("s2 is {s2}");
    // ANCHOR_END: here
}