mirror of
https://github.com/golang/go
synced 2024-11-24 20:10:02 -07:00
spec: pointer to array can be sliced
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
This commit is contained in:
parent
7d15eda95d
commit
8a8445ba71
@ -2440,7 +2440,7 @@ Assigning to an element of a <code>nil</code> map causes a
|
|||||||
<h3 id="Slices">Slices</h3>
|
<h3 id="Slices">Slices</h3>
|
||||||
|
|
||||||
<p>
|
<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>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user