We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main type t struct { key string } func main() { m := map[string]string{ "a": "b", } for key := range m { myKey := key go func() { println(t{key: myKey}) }() } }
junk.go:15:14: range-val-in-closure: loop variable key captured by func literal (revive) println(t{key: myKey})
The text was updated successfully, but these errors were encountered:
fix issue #637
fad3f78
Hi @twmb, thanks for reporting the bug
Sorry, something went wrong.
fix issue #637 (#638)
d4fbc92
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: