11 lines
167 B
Rust
11 lines
167 B
Rust
|
fn say_hello(name: &String) {
|
||
|
println!("Hello {}!", name);
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let name = String::from("Marko");
|
||
|
say_hello(&name);
|
||
|
|
||
|
println!("{}", name);
|
||
|
}
|