mirror of
https://github.com/golang/go
synced 2024-11-12 04:50:21 -07:00
fix documentation bug in example
Fixes #452. R=gri CC=golang-dev, dougfelt https://golang.org/cl/181043
This commit is contained in:
parent
a0862ea568
commit
617a6a519f
@ -2217,7 +2217,7 @@ as in this idealized example.
|
||||
<pre>
|
||||
type Vector []float64
|
||||
|
||||
// Apply the operation to n elements of v starting at i.
|
||||
// Apply the operation to v[i], v[i+1] ... up to v[n-1].
|
||||
func (v Vector) DoSome(i, n int, u Vector, c chan int) {
|
||||
for ; i < n; i++ {
|
||||
v[i] += u.Op(v[i])
|
||||
|
Loading…
Reference in New Issue
Block a user