summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-03-20 17:03:48 -0700
committerRob Pike <r@golang.org>2009-03-20 17:03:48 -0700
commit3308a5032636f93ce81335c42c4a31e5a42c80b5 (patch)
treef33c56b41104a85b7869f68a281069bab53eea96
parentb3e6c9aab3f96ddf2c0be0832b70ab1e504bbb3c (diff)
downloadgolang-3308a5032636f93ce81335c42c4a31e5a42c80b5.tar.gz
fix wording of &T{x}
R=rsc DELTA=5 (0 added, 2 deleted, 3 changed) OCL=26607 CL=26607
-rw-r--r--doc/go_spec.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 935787f8a..4100610f6 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -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>