Files
comprehensive_rust/src/day1/moves-in-functions-calls.rs
Christian Nieves e96fd91657 Populate
2022-12-26 14:28:10 -06:00

11 lines
241 B
Rust

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