From 8b53ee2f0de0874df6b4c61a9cceeb4c39d536d4 Mon Sep 17 00:00:00 2001 From: Paul Scarrone Date: Mon, 20 Feb 2023 13:10:51 -0500 Subject: [PATCH] functions 1 --- exercises/functions/functions1.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/exercises/functions/functions1.rs b/exercises/functions/functions1.rs index 03d8af70..416b0d67 100644 --- a/exercises/functions/functions1.rs +++ b/exercises/functions/functions1.rs @@ -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(); }