]> Cypherpunks repositories - gostls13.git/commitdiff
doc/articles: state that slices/arrays start at the 0th element
authorAndrew Gerrand <adg@golang.org>
Mon, 29 Jul 2013 08:33:39 +0000 (18:33 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 29 Jul 2013 08:33:39 +0000 (18:33 +1000)
Fixes #5881.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11892043

doc/articles/slices_usage_and_internals.html

index 7eb751b45519e25ecc28d20ee9cbc2d15dca3c76..ebdca0150368f686df595c84cfa05e157dbe80ad 100644 (file)
@@ -25,7 +25,7 @@ the type <code>[4]int</code> represents an array of four integers. An array's
 size is fixed; its length is part of its type (<code>[4]int</code> and
 <code>[5]int</code> are distinct, incompatible types). Arrays can be indexed in
 the usual way, so the expression <code>s[n]</code> accesses the <i>n</i>th
-element:
+element, starting from zero.
 </p>
 
 <pre>