Skip to content

Commit

Permalink
errgroup: fix go vet "copy lock value" warning
Browse files Browse the repository at this point in the history
Change-Id: I55256db02fe52ced96fe394574b81ced090999fe
Reviewed-on: https://go-review.googlesource.com/c/sync/+/236477
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
  • Loading branch information
anatoliinzrnk committed Jun 25, 2020
1 parent 92bc329 commit 80d4a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errgroup/errgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func fakeSearch(kind string) Search {
// simplify goroutine counting and error handling. This example is derived from
// the sync.WaitGroup example at https://golang.org/pkg/sync/#example_WaitGroup.
func ExampleGroup_justErrors() {
var g errgroup.Group
g := new(errgroup.Group)
var urls = []string{
"http://www.golang.org/",
"http://www.google.com/",
Expand Down Expand Up @@ -114,7 +114,7 @@ func TestZeroGroup(t *testing.T) {
}

for _, tc := range cases {
var g errgroup.Group
g := new(errgroup.Group)

var firstErr error
for i, err := range tc.errs {
Expand Down

0 comments on commit 80d4a11

Please sign in to comment.