diff --git a/doc/go_spec.html b/doc/go_spec.html index ba7b3644d9..12f43ef2fb 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -3287,7 +3287,10 @@ or an array indexing operation of an addressable array. As an exception to the addressability requirement, x may also be a (possibly parenthesized) composite literal. +If the evaluation of x would cause a run-time panic, +then the evaluation of &x does too.

+

For an operand x of pointer type *T, the pointer indirection *x denotes the value of type T pointed @@ -3302,6 +3305,10 @@ will cause a run-time panic. &Point{2, 3} *p *pf(x) + +var x *int = nil +*x // causes a run-time panic +&*x // causes a run-time panic