Skip to content

Commit

Permalink
Merge pull request #4926 from josedonizetti/add-closures-documentation
Browse files Browse the repository at this point in the history
Add comment for better clarity of closures_and_goroutines documentation
  • Loading branch information
medyagh authored Jul 30, 2019
2 parents feb7231 + 190830b commit db7d7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/machine/cache_binaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db7d7c8

Please sign in to comment.