From: Robert Griesemer
Date: Thu, 3 Jan 2013 02:11:49 +0000 (-0800)
Subject: spec: clarify language about unary operator &
X-Git-Tag: go1.1rc2~1491
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=614b02d22a66cfcd9f5c9631246b4b529484e642;p=gostls13.git
spec: clarify language about unary operator &
A composite literal may be parenthesized when
used as operand for the unary operator &.
R=rsc, iant, r, ken
CC=golang-dev
https://golang.org/cl/6996053
---
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 0087d8b5ec..ad3fa519b2 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
@@ -3246,6 +3246,7 @@ that is, either a variable, pointer indirection, or slice indexing
operation; or a field selector of an addressable struct operand;
or an array indexing operation of an addressable array.
As an exception to the addressability requirement, x
may also be a
+(possibly parenthesized)
composite literal.
@@ -3259,6 +3260,7 @@ will cause a run-time panic.
&x
&a[f(2)]
+&Point{2, 3}
*p
*pf(x)