summaryrefslogtreecommitdiff
path: root/src/sync
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-05-06 00:11:33 +0800
committerGopher Robot <gobot@golang.org>2023-05-10 12:59:20 +0000
commit57e3189821c6525fc8eecac42c3faad3b5416223 (patch)
tree56e615214191c4a8a17fa4b1ed125f20307599f8 /src/sync
parentdc0179bfa887aa82ff2cc615d07e52e59e57d204 (diff)
downloadgo-git-57e3189821c6525fc8eecac42c3faad3b5416223.tar.gz
all: fix a lot of comments
Fix comments, including duplicate is, wrong phrases and articles, misspellings, etc. Change-Id: I8bfea53b9b275e649757cc4bee6a8a026ed9c7a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/493035 Reviewed-by: Benny Siegert <bsiegert@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: shuang cui <imcusg@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/sync')
-rw-r--r--src/sync/atomic/type.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sync/atomic/type.go b/src/sync/atomic/type.go
index cc016833d1..179fa93092 100644
--- a/src/sync/atomic/type.go
+++ b/src/sync/atomic/type.go
@@ -111,7 +111,7 @@ func (x *Int64) CompareAndSwap(old, new int64) (swapped bool) {
// Add atomically adds delta to x and returns the new value.
func (x *Int64) Add(delta int64) (new int64) { return AddInt64(&x.v, delta) }
-// An Uint32 is an atomic uint32. The zero value is zero.
+// A Uint32 is an atomic uint32. The zero value is zero.
type Uint32 struct {
_ noCopy
v uint32
@@ -134,7 +134,7 @@ func (x *Uint32) CompareAndSwap(old, new uint32) (swapped bool) {
// Add atomically adds delta to x and returns the new value.
func (x *Uint32) Add(delta uint32) (new uint32) { return AddUint32(&x.v, delta) }
-// An Uint64 is an atomic uint64. The zero value is zero.
+// A Uint64 is an atomic uint64. The zero value is zero.
type Uint64 struct {
_ noCopy
_ align64
@@ -158,7 +158,7 @@ func (x *Uint64) CompareAndSwap(old, new uint64) (swapped bool) {
// Add atomically adds delta to x and returns the new value.
func (x *Uint64) Add(delta uint64) (new uint64) { return AddUint64(&x.v, delta) }
-// An Uintptr is an atomic uintptr. The zero value is zero.
+// A Uintptr is an atomic uintptr. The zero value is zero.
type Uintptr struct {
_ noCopy
v uintptr