summaryrefslogtreecommitdiffstats
path: root/vendor/go.uber.org/atomic/bool_ext.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.uber.org/atomic/bool_ext.go')
-rw-r--r--vendor/go.uber.org/atomic/bool_ext.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/go.uber.org/atomic/bool_ext.go b/vendor/go.uber.org/atomic/bool_ext.go
index c7bf7a82..a2e60e98 100644
--- a/vendor/go.uber.org/atomic/bool_ext.go
+++ b/vendor/go.uber.org/atomic/bool_ext.go
@@ -38,7 +38,7 @@ func boolToInt(b bool) uint32 {
}
// Toggle atomically negates the Boolean and returns the previous value.
-func (b *Bool) Toggle() bool {
+func (b *Bool) Toggle() (old bool) {
for {
old := b.Load()
if b.CAS(old, !old) {