]> Cypherpunks repositories - gostls13.git/commitdiff
fix documentation bug in example
authorRob Pike <r@golang.org>
Wed, 23 Dec 2009 02:47:58 +0000 (13:47 +1100)
committerRob Pike <r@golang.org>
Wed, 23 Dec 2009 02:47:58 +0000 (13:47 +1100)
Fixes #452.

R=gri
CC=golang-dev, dougfelt
https://golang.org/cl/181043

doc/effective_go.html

index d7b5eb2431822773581cc94cc4114fc93e249066..c9f1a125755f3dd5305db1fe328cad8e6ddb1c9c 100644 (file)
@@ -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])