From: Russ Cox Date: Tue, 3 Mar 2009 16:10:25 +0000 (-0800) Subject: clarify conversions vs type guards. X-Git-Tag: weekly.2009-11-06~2123 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e8b43190bbec4b3b445739c216a0f4e023a9442f;p=gostls13.git clarify conversions vs type guards. allow conversions between equal types. R=r DELTA=15 (4 added, 4 deleted, 7 changed) OCL=25618 CL=25630 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 2ec8094a9c..957618d5ee 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -3609,32 +3609,36 @@ T(value)

-where T is the type name of an arithmetic type or string (§Basic types), -and value is the value of an expression that can be converted to a value +where T is a type +and value is an expression +that can be converted to a value of result type T.

The following conversion rules apply: