From: Rob Pike
Date: Thu, 19 Mar 2009 05:58:36 +0000 (-0700)
Subject: &Foo{x,y} wasn't in the spec. This gets it in, dependent on a proper section regarding
X-Git-Tag: weekly.2009-11-06~2002
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=37ab838d3a6544d3661f978a0a9305e61f447403;p=gostls13.git
&Foo{x,y} wasn't in the spec. This gets it in, dependent on a proper section regarding
address operators, to follow.
R=rsc
DELTA=11 (10 added, 0 deleted, 1 changed)
OCL=26529
CL=26532
---
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 2da598cf86..06d5f4f68c 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1906,7 +1906,17 @@ one may write
-pi := Num{Rat{22, 7}, 3.14159, "pi"};
+pi := Num{Rat{22, 7}, 3.14159, "pi"}
+
+
+
+Since evaluation of a literal creates a new value, taking the address of a
+composite literal (§Address operators) generates a pointer to a unique
+instance of the literal's value.
+
+
+
+var pi_ptr *Rat = &Rat{22, 7}