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}