From 190830b827c4e5f34f716ee7fb5f17005cf674f9 Mon Sep 17 00:00:00 2001 From: josedonizetti Date: Tue, 30 Jul 2019 16:52:42 -0300 Subject: [PATCH] Add closures_and_goroutines documentation --- pkg/minikube/machine/cache_binaries.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/minikube/machine/cache_binaries.go b/pkg/minikube/machine/cache_binaries.go index f5f28a26cfe4..a31cde810a01 100644 --- a/pkg/minikube/machine/cache_binaries.go +++ b/pkg/minikube/machine/cache_binaries.go @@ -39,7 +39,7 @@ func CacheBinariesForBootstrapper(version string, clusterBootstrapper string) er var g errgroup.Group for _, bin := range binaries { - bin := bin + bin := bin // https://golang.org/doc/faq#closures_and_goroutines g.Go(func() error { if _, err := CacheBinary(bin, version, "linux", runtime.GOARCH); err != nil { return errors.Wrapf(err, "caching image %s", bin)