Skip to content

Commit b598b8f

Browse files
committed
Fixed spelling typos
1 parent 3e691a9 commit b598b8f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

benchmarks/main.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type testlock struct {
2121
m sync.Locker
2222
}
2323

24-
var syncprimatives = map[string]testlock{
24+
var syncprimitives = map[string]testlock{
2525
"systemmutex": {
2626
name: "SystemMutex",
2727
m: new(sync.Mutex),
@@ -208,17 +208,17 @@ func main() {
208208

209209
var testlocks []testlock = make([]testlock, 0)
210210

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 {
214214
testlocks = append(testlocks, p)
215215
}
216216
break
217217
}
218218

219-
p, ok := syncprimatives[primative]
219+
p, ok := syncprimitives[primitive]
220220
if !ok {
221-
fmt.Fprintf(os.Stderr, "LockType \"%s\" invalid\n", primative)
221+
fmt.Fprintf(os.Stderr, "LockType \"%s\" invalid\n", primitive)
222222
os.Exit(1)
223223
}
224224
testlocks = append(testlocks, p)

0 commit comments

Comments
 (0)