From e8b43190bbec4b3b445739c216a0f4e023a9442f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 3 Mar 2009 08:10:25 -0800 Subject: [PATCH] clarify conversions vs type guards. allow conversions between equal types. R=r DELTA=15 (4 added, 4 deleted, 7 changed) OCL=25618 CL=25630 --- doc/go_spec.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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: