mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Clarify order of operations
This commit is contained in:
@@ -52,7 +52,7 @@ pub fn part1(input: &[u8]) -> anyhow::Result<String> {
|
||||
let winners = (card.have & card.winning).count_ones();
|
||||
|
||||
if winners > 0 {
|
||||
1 << winners - 1
|
||||
1 << (winners - 1)
|
||||
} else {
|
||||
0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user