Unverified Commit 7e5a55af authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #3 from KerwinKoo/master

Just repair spelling mistake
parents 3b3bcfcf a88bdab2
...@@ -128,7 +128,7 @@ func (sw *sweeper) update() { ...@@ -128,7 +128,7 @@ func (sw *sweeper) update() {
// Remove the snapshot total, it'll get added back on // Remove the snapshot total, it'll get added back on
// registration. // 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 // `total`. It's the "correct" way to subtract
// atomically in go. // atomically in go.
atomic.AddUint64(&m.accumulator, ^uint64(m.snapshot.Total-1)) atomic.AddUint64(&m.accumulator, ^uint64(m.snapshot.Total-1))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment