aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2013-05-20 13:27:53 -0700
committerRobert Griesemer <gri@golang.org>2013-05-20 13:27:53 -0700
commitbb3a32ef6e6772ca6fefda119d0238aec6f7e585 (patch)
tree98777b518e79c5a7cf87e40322af4b8a65f16918
parent523b3bc4347372a71ccc531af87c6b8724446f48 (diff)
downloadgo-bb3a32ef6e6772ca6fefda119d0238aec6f7e585.tar.xz
spec: fix language about "range" clause
Fixes #5434. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/9595044
-rw-r--r--doc/go_spec.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index d5701cbd60..0015cbfb5d 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of May 14, 2013",
+ "Subtitle": "Version of May 20, 2013",
"Path": "/ref/spec"
}-->
@@ -4620,7 +4620,7 @@ channel c chan E, &lt;-chan E element e E
For an array, pointer to array, or slice value <code>a</code>, the index iteration
values are produced in increasing order, starting at element index 0.
If only the first iteration variable is present, the range loop produces
-iteration values from 0 up to <code>len(a)</code> and does not index into the array
+iteration values from 0 up to <code>len(a)-1</code> and does not index into the array
or slice itself. For a <code>nil</code> slice, the number of iterations is 0.
</li>