mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 13:19:18 +00:00
functions 1
This commit is contained in:
parent
09fd4b28c0
commit
8b53ee2f0d
@ -1,8 +1,13 @@
|
||||
// functions1.rs
|
||||
// Execute `rustlings hint functions1` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
fn main() {
|
||||
|
||||
fn hi() -> &'static str { "hi" }
|
||||
|
||||
fn call_me() {
|
||||
println!("{}", hi())
|
||||
}
|
||||
|
||||
call_me();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user