]> Cypherpunks repositories - gostls13.git/commitdiff
fix wording of &T{x}
authorRob Pike <r@golang.org>
Sat, 21 Mar 2009 00:03:48 +0000 (17:03 -0700)
committerRob Pike <r@golang.org>
Sat, 21 Mar 2009 00:03:48 +0000 (17:03 -0700)
R=rsc
DELTA=5  (0 added, 2 deleted, 3 changed)
OCL=26607
CL=26607

doc/go_spec.html

index 935787f8a41ad61325c376fcf639b1875a425a56..4100610f6c47df714b0d7ac9ee22378d572fa962 100644 (file)
@@ -1910,11 +1910,9 @@ pi := Num{Rat{22, 7}, 3.14159, "pi"}
 </pre>
 
 <p>
-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.
+Taking the address of a composite literal (§Address operators)
+generates a unique pointer to an instance of the literal's value.
 </p>
-
 <pre>
 var pi_ptr *Rat = &amp;Rat{22, 7}
 </pre>