Matt Bolt преди 5 години
родител
ревизия
23ee528893
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      pkg/util/atomic.go

+ 2 - 2
pkg/util/atomic.go

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