From f6dd45bf82f84454f5d461e8e88bd4e70c1dc614 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 29 Jul 2013 18:33:39 +1000 Subject: [PATCH] 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 --- doc/articles/slices_usage_and_internals.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.

-- 
2.48.1