]> Cypherpunks repositories - gostls13.git/commit
sync: name the Map.CompareAndSwap return value
authorPeter Collingbourne <pcc@google.com>
Wed, 20 Mar 2024 02:27:22 +0000 (19:27 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 21 Mar 2024 00:52:58 +0000 (00:52 +0000)
commit36cd880878a9804489557c29fa768647d665fbe0
tree3c3884ef055a52de3687d2691f96cc9dc2c15236
parent7d4d71e52f0714c7990705f0fc56f9104761514e
sync: name the Map.CompareAndSwap return value

The godoc for sync.Map.CompareAndSwap does not document the meaning
of its return value. Document it by giving it a name.

Change-Id: I50ad9c078a7885f5ce83489d66d138d491c35861
Reviewed-on: https://go-review.googlesource.com/c/go/+/572657
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/sync/map.go