aboutsummaryrefslogtreecommitdiff
path: root/src/sync
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync')
-rw-r--r--src/sync/once.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync/once.go b/src/sync/once.go
index 1573b28b28..7c9ad8dd1a 100644
--- a/src/sync/once.go
+++ b/src/sync/once.go
@@ -52,7 +52,7 @@ type Once struct {
func (o *Once) Do(f func()) {
// Note: Here is an incorrect implementation of Do:
//
- // if o.done.CompareAndSwap(0, 1) {
+ // if o.done.CompareAndSwap(false, true) {
// f()
// }
//