From: Andrew Gerrand Date: Mon, 29 Jul 2013 08:33:39 +0000 (+1000) Subject: doc/articles: state that slices/arrays start at the 0th element X-Git-Tag: go1.2rc2~918 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f6dd45bf82f84454f5d461e8e88bd4e70c1dc614;p=gostls13.git 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 --- diff --git a/doc/articles/slices_usage_and_internals.html b/doc/articles/slices_usage_and_internals.html index 7eb751b455..ebdca01503 100644 --- a/doc/articles/slices_usage_and_internals.html +++ b/doc/articles/slices_usage_and_internals.html @@ -25,7 +25,7 @@ the type [4]int represents an array of four integers. An array's size is fixed; its length is part of its type ([4]int and [5]int are distinct, incompatible types). Arrays can be indexed in the usual way, so the expression s[n] accesses the nth -element: +element, starting from zero.