From 69b4fd49fcfad1f71df4627c6fa7f1aa505d0778 Mon Sep 17 00:00:00 2001 From: mo8it Date: Sat, 17 Aug 2024 14:59:00 +0200 Subject: [PATCH] Only take a u8 to avoid huge output --- exercises/02_functions/functions3.rs | 2 +- solutions/02_functions/functions3.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/02_functions/functions3.rs b/exercises/02_functions/functions3.rs index 5d5122a..8d65477 100644 --- a/exercises/02_functions/functions3.rs +++ b/exercises/02_functions/functions3.rs @@ -1,4 +1,4 @@ -fn call_me(num: u32) { +fn call_me(num: u8) { for i in 0..num { println!("Ring! Call number {}", i + 1); } diff --git a/solutions/02_functions/functions3.rs b/solutions/02_functions/functions3.rs index c581c42..ce5fe8e 100644 --- a/solutions/02_functions/functions3.rs +++ b/solutions/02_functions/functions3.rs @@ -1,4 +1,4 @@ -fn call_me(num: u32) { +fn call_me(num: u8) { for i in 0..num { println!("Ring! Call number {}", i + 1); }