From 55984f5e8d74254145d0bca5da50bc8e596f148d Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Fri, 4 Mar 2022 15:10:42 +0300 Subject: [PATCH] Fix staticcheck errors --- example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example_test.go b/example_test.go index 498c833..190e7a3 100644 --- a/example_test.go +++ b/example_test.go @@ -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 @@ -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}