Heap bits

This commit is contained in:
Dan Buch 2017-12-29 22:07:38 -05:00
parent eace2dafe4
commit 5a74a5dc01
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

View File

@ -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);
}