Skip to content

Commit 972a708

Browse files
sjmuddmethane
authored andcommittedFeb 17, 2019
Utils typo wether --> whether. (go-sql-driver#895)
1 parent 1b9eda2 commit 972a708

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Richard Wilkes <wilkes at me.com>
7171
Robert Russell <robert at rrbrussell.com>
7272
Runrioter Wung <runrioter at gmail.com>
7373
Shuode Li <elemount at qq.com>
74+
Simon J Mudd <sjmudd at pobox.com>
7475
Soroush Pour <me at soroushjp.com>
7576
Stan Putrya <root.vagner at gmail.com>
7677
Stanley Gunawan <gunawan.stanley at gmail.com>

‎utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ type atomicBool struct {
684684
value uint32
685685
}
686686

687-
// IsSet returns wether the current boolean value is true
687+
// IsSet returns whether the current boolean value is true
688688
func (ab *atomicBool) IsSet() bool {
689689
return atomic.LoadUint32(&ab.value) > 0
690690
}
@@ -698,7 +698,7 @@ func (ab *atomicBool) Set(value bool) {
698698
}
699699
}
700700

701-
// TrySet sets the value of the bool and returns wether the value changed
701+
// TrySet sets the value of the bool and returns whether the value changed
702702
func (ab *atomicBool) TrySet(value bool) bool {
703703
if value {
704704
return atomic.SwapUint32(&ab.value, 1) == 0

0 commit comments

Comments
 (0)
Please sign in to comment.