summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-12-23 13:47:58 +1100
committerRob Pike <r@golang.org>2009-12-23 13:47:58 +1100
commit122e91e1f4a61faee804411476ccb5c0af611c27 (patch)
treefd4a3412e53138bd2ede7ddd5217c81cf833d097
parent267fcee182d7e0b71267617505624d2d3e1d9d9c (diff)
downloadgo-122e91e1f4a61faee804411476ccb5c0af611c27.tar.gz
fix documentation bug in example
Fixes issue 452. R=gri CC=golang-dev, dougfelt http://codereview.appspot.com/181043
-rw-r--r--doc/effective_go.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/effective_go.html b/doc/effective_go.html
index d7b5eb243..c9f1a1257 100644
--- a/doc/effective_go.html
+++ b/doc/effective_go.html
@@ -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])