1
0
mirror of https://github.com/golang/go synced 2024-11-25 04:07:55 -07:00

fix wording of &T{x}

R=rsc
DELTA=5  (0 added, 2 deleted, 3 changed)
OCL=26607
CL=26607
This commit is contained in:
Rob Pike 2009-03-20 17:03:48 -07:00
parent 2bd101c4b1
commit 2a5af744a6

View 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>