Skip to content

Commit

Permalink
fix: typo incrementing instead of decrementing
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Dec 4, 2024
1 parent 561b27b commit 79d2e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/common/src/most_seen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl<T: Hash + Eq + Clone> MostSeen<T> {

// Item is in the map; not the best anyway. decrement count.
if let Some(count) = self.others.get_mut(item) {
*count += 1;
*count = count.saturating_sub(1);
}
ChangeResult::NoChange
}
Expand Down

0 comments on commit 79d2e93

Please sign in to comment.