diff options
| author | mo8it <mo8it@proton.me> | 2024-05-21 02:43:18 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-05-21 02:43:18 +0200 |
| commit | d0b843d6c4a99636d3dc6caf3ceebea14cb3b07d (patch) | |
| tree | 2021b096bdd07d37abbf71ed1df3b0b58753f67a /exercises/02_functions/functions2.rs | |
| parent | 0f4c42d54ea7322a4ee0ae7036c058c3061e80e9 (diff) | |
Add solutions to functions
Diffstat (limited to 'exercises/02_functions/functions2.rs')
| -rw-r--r-- | exercises/02_functions/functions2.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/exercises/02_functions/functions2.rs b/exercises/02_functions/functions2.rs index 84e09cd..2c773c6 100644 --- a/exercises/02_functions/functions2.rs +++ b/exercises/02_functions/functions2.rs @@ -1,9 +1,10 @@ -fn main() { - call_me(3); -} - +// TODO: Add the missing type of the argument `num` after the colon `:`. fn call_me(num:) { for i in 0..num { println!("Ring! Call number {}", i + 1); } } + +fn main() { + call_me(3); +} |
