Commit 617a6a51 authored by Rob Pike's avatar Rob Pike

fix documentation bug in example

Fixes #452.

R=gri
CC=golang-dev, dougfelt
https://golang.org/cl/181043
parent a0862ea5
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment