From 37ab838d3a6544d3661f978a0a9305e61f447403 Mon Sep 17 00:00:00 2001
From: Rob Pike
Date: Wed, 18 Mar 2009 22:58:36 -0700
Subject: [PATCH] &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
---
doc/go_spec.html | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 2da598cf86b..06d5f4f68c6 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}