Avoid using a suffix (#239)

This commit is contained in:
Luca Palmieri 2024-12-18 17:38:05 +01:00 committed by GitHub
parent 36f6375c20
commit 3f60de3712
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)]