Value: place nocmp zero-sized field first (#109)

This commit is contained in:
eNV25
2022-08-05 20:21:10 +04:00
committed by GitHub
parent 122c956c5a
commit edb52d7eaa

View File

@@ -25,7 +25,7 @@ import "sync/atomic"
// Value shadows the type of the same name from sync/atomic // Value shadows the type of the same name from sync/atomic
// https://godoc.org/sync/atomic#Value // https://godoc.org/sync/atomic#Value
type Value struct { type Value struct {
atomic.Value
_ nocmp // disallow non-atomic comparison _ nocmp // disallow non-atomic comparison
atomic.Value
} }