functions 1

This commit is contained in:
Paul Scarrone 2023-02-20 13:10:51 -05:00
parent 09fd4b28c0
commit 8b53ee2f0d

View File

@ -1,8 +1,13 @@
// functions1.rs // functions1.rs
// Execute `rustlings hint functions1` or use the `hint` watch subcommand for a hint. // Execute `rustlings hint functions1` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() { fn main() {
fn hi() -> &'static str { "hi" }
fn call_me() {
println!("{}", hi())
}
call_me(); call_me();
} }