@@ -21,7 +21,7 @@ type testlock struct {
21
21
m sync.Locker
22
22
}
23
23
24
- var syncprimatives = map [string ]testlock {
24
+ var syncprimitives = map [string ]testlock {
25
25
"systemmutex" : {
26
26
name : "SystemMutex" ,
27
27
m : new (sync.Mutex ),
@@ -208,17 +208,17 @@ func main() {
208
208
209
209
var testlocks []testlock = make ([]testlock , 0 )
210
210
211
- for _ , primative := range strings .Split (strings .ToLower (FlagLockType ), "," ) {
212
- if primative == "all" {
213
- for _ , p := range syncprimatives {
211
+ for _ , primitive := range strings .Split (strings .ToLower (FlagLockType ), "," ) {
212
+ if primitive == "all" {
213
+ for _ , p := range syncprimitives {
214
214
testlocks = append (testlocks , p )
215
215
}
216
216
break
217
217
}
218
218
219
- p , ok := syncprimatives [ primative ]
219
+ p , ok := syncprimitives [ primitive ]
220
220
if ! ok {
221
- fmt .Fprintf (os .Stderr , "LockType \" %s\" invalid\n " , primative )
221
+ fmt .Fprintf (os .Stderr , "LockType \" %s\" invalid\n " , primitive )
222
222
os .Exit (1 )
223
223
}
224
224
testlocks = append (testlocks , p )
0 commit comments