Commit f6dd45bf authored by Andrew Gerrand's avatar Andrew Gerrand

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
parent 6db195ca
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment