Skip to content

Commit

Permalink
Avoid using a suffix (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker authored Dec 18, 2024
1 parent 36f6375 commit 3f60de3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exercises/02_basic_calculator/01_integers/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down

0 comments on commit 3f60de3

Please sign in to comment.