Skip to content

Commit

Permalink
Fix bug in stats calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw authored Jan 28, 2024
1 parent 9443607 commit 5a5ba89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ struct Stats: Equatable {
mutating func increment() {
count += 1
numberOfCounts += 1
maxCount = max(minCount, count)
maxCount = max(maxCount, count)
}
mutating func decrement() {
count -= 1
Expand Down

0 comments on commit 5a5ba89

Please sign in to comment.