From 3f60de3712c3c6a7fea7821896cc2c6f338470c1 Mon Sep 17 00:00:00 2001 From: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:38:05 +0100 Subject: [PATCH] Avoid using a suffix (#239) --- exercises/02_basic_calculator/01_integers/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/02_basic_calculator/01_integers/src/lib.rs b/exercises/02_basic_calculator/01_integers/src/lib.rs index 555db12ab..a87b56fba 100644 --- a/exercises/02_basic_calculator/01_integers/src/lib.rs +++ b/exercises/02_basic_calculator/01_integers/src/lib.rs @@ -1,6 +1,7 @@ fn compute(a: u32, b: u32) -> u32 { // TODO: change the line below to fix the compiler error and make the tests pass. - a + b * 4u8 + let multiplier: u8 = 4; + a + b * multiplier } #[cfg(test)]