From: Rob Pike
Date: Mon, 23 Sep 2013 04:41:20 +0000 (+1000)
Subject: doc/go1.2.html: fix 3-index slice example
X-Git-Tag: go1.2rc2~144
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4977f9f926b743a575a2d68920a41806c95d6a76;p=gostls13.git
doc/go1.2.html: fix 3-index slice example
A number was wrong; adjust as suggested to make things clearer.
Fixes #6452
R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/13422046
---
diff --git a/doc/go1.2.html b/doc/go1.2.html
index fc2ede99b7..fcbf5e22f5 100644
--- a/doc/go1.2.html
+++ b/doc/go1.2.html
@@ -99,12 +99,12 @@ source slice or array, adjusted for the origin. For instance,
-slice = array[2:4:6]
+slice = array[2:4:7]
-sets the slice to have the same length as in the earlier example but its capacity is now only 4 elements (6-2).
-It is impossible to use this new slice value to access the last two elements of the original array.
+sets the slice to have the same length as in the earlier example but its capacity is now only 5 elements (7-2).
+It is impossible to use this new slice value to access the last three elements of the original array.