Skip to content

Commit

Permalink
Value: place nocmp zero-sized field first (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
eNV25 committed Aug 5, 2022
1 parent 122c956 commit edb52d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions value.go
Expand Up @@ -25,7 +25,7 @@ import "sync/atomic"
// Value shadows the type of the same name from sync/atomic
// https://godoc.org/sync/atomic#Value
type Value struct {
atomic.Value

_ nocmp // disallow non-atomic comparison

atomic.Value
}

0 comments on commit edb52d7

Please sign in to comment.