From: Robert Griesemer Date: Mon, 20 May 2013 20:27:53 +0000 (-0700) Subject: spec: fix language about "range" clause X-Git-Tag: go1.2rc2~1465 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bb3a32ef6e6772ca6fefda119d0238aec6f7e585;p=gostls13.git spec: fix language about "range" clause Fixes #5434. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/9595044 --- 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 @@ @@ -4620,7 +4620,7 @@ channel c chan E, <-chan E element e E For an array, pointer to array, or slice value a, 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 len(a) and does not index into the array +iteration values from 0 up to len(a)-1 and does not index into the array or slice itself. For a nil slice, the number of iterations is 0.