mirror of
https://github.com/golang/go.git
synced 2024-11-21 21:11:11 +00:00
Updated CommonMistakes (markdown)
parent
e6dc812091
commit
b1ebeff743
@ -10,7 +10,7 @@ When new programmers start using Go or when old Go programmers start using a new
|
||||
|
||||
# Using goroutines on loop iterator variables
|
||||
|
||||
When iterating in Go, one might atempt to use goroutines to process data in parallel. For example, you might write something like this, using a closure:
|
||||
When iterating in Go, one might attempt to use goroutines to process data in parallel. For example, you might write something like this, using a closure:
|
||||
|
||||
```go
|
||||
for _, val := range values {
|
||||
|
Loading…
Reference in New Issue
Block a user