Continue writing report
This commit is contained in:
parent
bc3fe77c93
commit
f36c9fef60
22 changed files with 266 additions and 165 deletions
10
tex/code/ownership.rs
Normal file
10
tex/code/ownership.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
fn say_hello(name: String) {
|
||||
println!("Hello {}!", name);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let name = String::from("Marko");
|
||||
say_hello(name);
|
||||
|
||||
println!("{}", name);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue