Skip to content

Commit 3f60de3

Browse files
Avoid using a suffix (#239)
1 parent 36f6375 commit 3f60de3

File tree

1 file changed

+2
-1
lines changed
  • exercises/02_basic_calculator/01_integers/src

1 file changed

+2
-1
lines changed

exercises/02_basic_calculator/01_integers/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
fn compute(a: u32, b: u32) -> u32 {
22
// TODO: change the line below to fix the compiler error and make the tests pass.
3-
a + b * 4u8
3+
let multiplier: u8 = 4;
4+
a + b * multiplier
45
}
56

67
#[cfg(test)]

0 commit comments

Comments
 (0)