From: Russ Cox Date: Fri, 2 Dec 2011 18:11:30 +0000 (-0500) Subject: spec: pointer to array can be sliced X-Git-Tag: weekly.2011-12-06~41 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8a8445ba71b18f9a4dcdd7e50a6e821afcbfe2ed;p=gostls13.git 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 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 6c250785ea..00cb962872 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -2440,7 +2440,7 @@ Assigning to an element of a nil map causes a

Slices

-For a string, array, or slice a, the primary expression +For a string, array, pointer to array, or slice a, the primary expression