top | item 37575617 (no title) ravivooda | 2 years ago Similar: https://github.com/ravivooda/gofor discuss order hn newest chen_dev|2 years ago the 'fix' to the example in the README should be obvious, but for reference:- for _, e := range es {- pumpUp(&e)}+ for i := range es {+ pumpUp(&es[i])}
chen_dev|2 years ago the 'fix' to the example in the README should be obvious, but for reference:- for _, e := range es {- pumpUp(&e)}+ for i := range es {+ pumpUp(&es[i])}
chen_dev|2 years ago
- for _, e := range es {
- pumpUp(&e)
}
+ for i := range es {
+ pumpUp(&es[i])
}