summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2021-08-12 14:41:12 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-12 14:43:45 -0700
commit345eb4a666eb64c31fc050209abac974520236a3 (patch)
treead5ce0ceec0250f6d062ab0642ac6c3c502344e6 /pkg
parent968792961de53650146b7706b279a25e184396e0 (diff)
fix typo
PiperOrigin-RevId: 390463819
Diffstat (limited to 'pkg')
-rw-r--r--pkg/atomicbitops/aligned_32bit_unsafe.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/atomicbitops/aligned_32bit_unsafe.go b/pkg/atomicbitops/aligned_32bit_unsafe.go
index a17d317cc..0e4765c48 100644
--- a/pkg/atomicbitops/aligned_32bit_unsafe.go
+++ b/pkg/atomicbitops/aligned_32bit_unsafe.go
@@ -39,9 +39,9 @@ type AlignedAtomicInt64 struct {
}
func (aa *AlignedAtomicInt64) ptr() *int64 {
- // On 32-bit systems, aa.value is is guaranteed to be 32-bit aligned.
- // It means that in the 12-byte aa.value, there are guaranteed to be 8
- // contiguous bytes with 64-bit alignment.
+ // On 32-bit systems, aa.value is guaranteed to be 32-bit aligned. It means
+ // that in the 12-byte aa.value, there are guaranteed to be 8 contiguous bytes
+ // with 64-bit alignment.
return (*int64)(unsafe.Pointer((uintptr(unsafe.Pointer(&aa.value)) + 4) &^ 7))
}
@@ -77,9 +77,9 @@ type AlignedAtomicUint64 struct {
}
func (aa *AlignedAtomicUint64) ptr() *uint64 {
- // On 32-bit systems, aa.value is is guaranteed to be 32-bit aligned.
- // It means that in the 12-byte aa.value, there are guaranteed to be 8
- // contiguous bytes with 64-bit alignment.
+ // On 32-bit systems, aa.value is guaranteed to be 32-bit aligned. It means
+ // that in the 12-byte aa.value, there are guaranteed to be 8 contiguous bytes
+ // with 64-bit alignment.
return (*uint64)(unsafe.Pointer((uintptr(unsafe.Pointer(&aa.value)) + 4) &^ 7))
}