1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:10:04 -07:00

doc/articles: state that slices/arrays start at the 0th element

Fixes #5881.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11892043
This commit is contained in:
Andrew Gerrand 2013-07-29 18:33:39 +10:00
parent 6db195cae2
commit f6dd45bf82

View 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>