Can someone double check that code from first example really has some problems?

oleksiif 2015-12-05 12:04:43 +07:00
parent e800242a66
commit 917f086adf

@ -6,7 +6,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 also be tempted to use goroutines to process data in parallel. For example, you might write the following code:
When iterating in Go, one might also be tempted to use goroutines to process data in parallel. For example, you might write the following code (TODO: What is wrong with example from the following code?):
```go
for val := range values {
go val.my_method()