You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is perhaps the most trivial issue imaginable, but...
At http://golang.org/doc/effective_go.html#parallel
the sample code has an incorrect comment:
// Apply the operation to n elements of v starting at i.
func (v Vector) DoSome(i, n int, u Vector, c chan int) {
for ; i < n; i++ {
...
n is not a count of elements, it is a limit. The calling code in the following
example is ok, it is the commenton this func that's in error.