This commit is contained in:
Christian Nieves
2022-12-26 14:27:56 -06:00
commit e96fd91657
23 changed files with 474 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// https://google.github.io/comprehensive-rust/ownership/moves-function-calls.html
fn say_hello(name: String) {
println!("Hello {name}")
}
fn main() {
let name = String::from("Alice");
say_hello(name);
// say_hello(name);
}