mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Remove superfluous TODO and remove underscore in method name in example code
parent
e243495e9d
commit
6cf536bfdf
@ -10,10 +10,10 @@ When new programmers start using Go or when old Go programmers start using a new
|
|||||||
|
|
||||||
# Using goroutines on loop iterator variables
|
# 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 (TODO: What is wrong with example from 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:
|
||||||
```go
|
```go
|
||||||
for val := range values {
|
for val := range values {
|
||||||
go val.my_method()
|
go val.MyMethod()
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user