cat-town
Dan Buch 6 years ago
parent eace2dafe4
commit 5a74a5dc01
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

@ -1,9 +1,6 @@
fn main() {
{
let mut s = String::from("hello");
let s1 = String::from("hello");
let s2 = s1.clone();
s.push_str(", world!");
println!("{}", s);
}
println!("s1 = {}, s2 = {}", s1, s2);
}

Loading…
Cancel
Save