Skip to content

Commit

Permalink
Fix staticcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Mar 4, 2022
1 parent 38456cf commit 55984f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// at any time.
func ExampleGroup_parallel() {
const maxWorkers = 2
s := semgroup.NewGroup(context.Background(), 2)
s := semgroup.NewGroup(context.Background(), maxWorkers)

var (
counter int
Expand Down Expand Up @@ -47,7 +47,7 @@ func ExampleGroup_parallel() {

func ExampleGroup_withErrors() {
const maxWorkers = 2
s := semgroup.NewGroup(context.Background(), 2)
s := semgroup.NewGroup(context.Background(), maxWorkers)

visitors := []int{1, 1, 1, 1, 2, 2, 1, 1, 2}

Expand Down

0 comments on commit 55984f5

Please sign in to comment.