mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2025-01-28 07:58:42 +01:00
Avoid using a suffix (#239)
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
CI / gravity (push) Has been cancelled
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled
CI / gravity (push) Has been cancelled
This commit is contained in:
parent
36f6375c20
commit
3f60de3712
1 changed files with 2 additions and 1 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Reference in a new issue