Ownership scope fun

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

@ -0,0 +1,6 @@
[package]
name = "ownership"
version = "0.1.0"
authors = ["Dan Buch <daniel.buch@gmail.com>"]
[dependencies]

@ -0,0 +1,9 @@
fn main() {
{
let mut s = String::from("hello");
s.push_str(", world!");
println!("{}", s);
}
}
Loading…
Cancel
Save