mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
167 B
9 lines
167 B
4 years ago
|
fn main() {
|
||
|
// ANCHOR: here
|
||
|
let mut s1 = String::from("foo");
|
||
|
let s2 = "bar";
|
||
|
s1.push_str(s2);
|
||
|
println!("s2 is {}", s2);
|
||
|
// ANCHOR_END: here
|
||
|
}
|