From 8232a09e3ed7d315a90ac059ee542ecaf0f6b4c2 Mon Sep 17 00:00:00 2001 From: csuzhang Date: Mon, 9 Jan 2023 01:57:53 +0000 Subject: [PATCH] sync/atomic: fix the note of atomic.Store Change-Id: Id485d0f1e06febe97d1a770bc26c138d9613a7dd GitHub-Last-Rev: e57dd3e1abb58031b3d8bec8beace1560faad397 GitHub-Pull-Request: golang/go#57679 Reviewed-on: https://go-review.googlesource.com/c/go/+/461076 Reviewed-by: Keith Randall Auto-Submit: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Reviewed-by: Keith Randall Run-TryBot: Keith Randall --- src/sync/atomic/value.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync/atomic/value.go b/src/sync/atomic/value.go index 2bef76c928..8c491b4616 100644 --- a/src/sync/atomic/value.go +++ b/src/sync/atomic/value.go @@ -41,7 +41,7 @@ func (v *Value) Load() (val any) { var firstStoreInProgress byte -// Store sets the value of the Value to x. +// Store sets the value of the Value v to val. // All calls to Store for a given Value must use values of the same concrete type. // Store of an inconsistent type panics, as does Store(nil). func (v *Value) Store(val any) { -- 2.50.0