]> Cypherpunks repositories - gostls13.git/commitdiff
spec: pointer to array can be sliced
authorRuss Cox <rsc@golang.org>
Fri, 2 Dec 2011 18:11:30 +0000 (13:11 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 2 Dec 2011 18:11:30 +0000 (13:11 -0500)
This has always been true, but we lost it from the spec
somewhere along the way, probably when we disallowed
the general 'pointer to anything sliceable' slice case.

R=gri
CC=golang-dev
https://golang.org/cl/5437121

doc/go_spec.html

index 6c250785ea1111300ffa046e42cb46de8a6d2240..00cb96287292e6702254c5de209ee68021d5de85 100644 (file)
@@ -2440,7 +2440,7 @@ Assigning to an element of a <code>nil</code> map causes a
 <h3 id="Slices">Slices</h3>
 
 <p>
-For a string, array, or slice <code>a</code>, the primary expression
+For a string, array, pointer to array, or slice <code>a</code>, the primary expression
 </p>
 
 <pre>