From d417017f6c766a08eda4a6febc238cd4faccc541 Mon Sep 17 00:00:00 2001 From: Rock070 Date: Sun, 17 Dec 2023 00:02:51 +0800 Subject: [PATCH] Fix parameter type in call_me function --- exercises/02_functions/functions2.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exercises/02_functions/functions2.rs b/exercises/02_functions/functions2.rs index 5154f34d..317caf93 100644 --- a/exercises/02_functions/functions2.rs +++ b/exercises/02_functions/functions2.rs @@ -3,13 +3,11 @@ // Execute `rustlings hint functions2` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE - fn main() { call_me(3); } -fn call_me(num:) { +fn call_me(num: i8) { for i in 0..num { println!("Ring! Call number {}", i + 1); }