mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 15:26:29 +00: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