Populate
This commit is contained in:
10
src/day1/moves-in-functions-calls.rs
Normal file
10
src/day1/moves-in-functions-calls.rs
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user