Update comments in StrictMonotonicCounter

Fix comment formatting and clarify description.
This commit is contained in:
Cassandra Heart 2025-11-11 04:59:26 -06:00 committed by GitHub
parent 8e509ec5a8
commit a106a9542b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,8 +5,8 @@ import "sync/atomic"
// StrictMonotonicCounter is a helper struct which implements a strict monotonic
// counter. StrictMonotonicCounter is implemented using atomic operations and
// doesn't allow to set a value which is lower or equal to the already stored
// ne. The counter is implemented solely with non-blocking atomic operations for
// concurrency safety.
// one. The counter is implemented solely with non-blocking atomic operations
// for concurrency safety.
type StrictMonotonicCounter struct {
atomicCounter uint64
}