mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 08:49:12 -04:00
Create ex2.rs
This commit is contained in:
parent
a24f0f9398
commit
f238bdc34e
1 changed files with 9 additions and 0 deletions
9
ex2.rs
Normal file
9
ex2.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Make me compile!
|
||||
|
||||
fn something() -> String {
|
||||
"hi!"
|
||||
}
|
||||
|
||||
fn main() {
|
||||
println!("{}", something());
|
||||
}
|
Loading…
Reference in a new issue