Skip to content

Commit 8bc8bdd

Browse files
authored
Merge pull request #2368 from zloglevel/docs/atomic-bool-comments
docs(common): fix AtomicBool comments
2 parents 887be9c + 3efa432 commit 8bc8bdd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/atomic_bool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type AtomicBool struct {
1919
value uint32
2020
}
2121

22-
// IsSet returns wether the current boolean value is true.
22+
// IsSet returns whether the current boolean value is true.
2323
func (ab *AtomicBool) IsSet() bool {
2424
return atomic.LoadUint32(&ab.value) > 0
2525
}
@@ -33,7 +33,7 @@ func (ab *AtomicBool) Set(value bool) {
3333
}
3434
}
3535

36-
// TrySet sets the value of the bool and returns wether the value changed.
36+
// TrySet sets the value of the bool and returns whether the value changed.
3737
func (ab *AtomicBool) TrySet(value bool) bool {
3838
if value {
3939
return atomic.SwapUint32(&ab.value, 1) == 0

0 commit comments

Comments
 (0)