Skip to content

Commit

Permalink
Just repair spelling mistake
Browse files Browse the repository at this point in the history
Signed-off-by: gukq <[email protected]>
  • Loading branch information
KerwinKoo committed Sep 6, 2018
1 parent 3b3bcfc commit a88bdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sweeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (sw *sweeper) update() {
// Remove the snapshot total, it'll get added back on
// registration.
//
// `^uint64(total - 1)` is the two's compliment of
// `^uint64(total - 1)` is the two's complement of
// `total`. It's the "correct" way to subtract
// atomically in go.
atomic.AddUint64(&m.accumulator, ^uint64(m.snapshot.Total-1))
Expand Down

0 comments on commit a88bdab

Please sign in to comment.