diff --git a/swarm/shed/vector_uint64.go b/swarm/shed/vector_uint64.go index 2f8a0246bc..0926e64f80 100644 --- a/swarm/shed/vector_uint64.go +++ b/swarm/shed/vector_uint64.go @@ -68,7 +68,7 @@ func (f Uint64Vector) PutInBatch(batch *leveldb.Batch, i, val uint64) { } // Inc increments a uint64 value in the database. -// This operation is not goroutine save. +// This operation is not goroutine safe. func (f Uint64Vector) Inc(i uint64) (val uint64, err error) { val, err = f.Get(i) if err != nil { @@ -84,7 +84,7 @@ func (f Uint64Vector) Inc(i uint64) (val uint64, err error) { // IncInBatch increments a uint64 value at index i in the batch // by retreiving a value from the database, not the same batch. -// This operation is not goroutine save. +// This operation is not goroutine safe. func (f Uint64Vector) IncInBatch(batch *leveldb.Batch, i uint64) (val uint64, err error) { val, err = f.Get(i) if err != nil { @@ -100,7 +100,7 @@ func (f Uint64Vector) IncInBatch(batch *leveldb.Batch, i uint64) (val uint64, er } // Dec decrements a uint64 value at index i in the database. -// This operation is not goroutine save. +// This operation is not goroutine safe. // The field is protected from overflow to a negative value. func (f Uint64Vector) Dec(i uint64) (val uint64, err error) { val, err = f.Get(i) @@ -119,7 +119,7 @@ func (f Uint64Vector) Dec(i uint64) (val uint64, err error) { // DecInBatch decrements a uint64 value at index i in the batch // by retreiving a value from the database, not the same batch. -// This operation is not goroutine save. +// This operation is not goroutine safe. // The field is protected from overflow to a negative value. func (f Uint64Vector) DecInBatch(batch *leveldb.Batch, i uint64) (val uint64, err error) { val, err = f.Get(i)