Matt Bolt 5 vuotta sitten
vanhempi
sitoutus
23ee528893
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      pkg/util/atomic.go

+ 2 - 2
pkg/util/atomic.go

@@ -11,12 +11,12 @@ func NewAtomicInt32(value int32) *AtomicInt32 {
 	return ai
 }
 
-// Loads the bool value atomically
+// Loads the int32 value atomically
 func (ai *AtomicInt32) Get() int32 {
 	return atomic.LoadInt32((*int32)(ai))
 }
 
-// Sets the bool value atomically
+// Sets the int32 value atomically
 func (ai *AtomicInt32) Set(value int32) {
 	atomic.StoreInt32((*int32)(ai), value)
 }