1
0
mirror of https://github.com/golang/go synced 2024-09-24 07:20:14 -06:00
R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=33994
CL=33994
This commit is contained in:
Robert Griesemer 2009-08-27 16:44:17 -07:00
parent c19c933f5a
commit 1f95f0d353

View File

@ -3283,7 +3283,7 @@ case x == 4: f3();
<p>
A type switch compares types rather than values. It is otherwise similar
to an expression switch. It is marked by a special switch expression which
to an expression switch. It is marked by a special switch expression that
has the form of a <a href="#Type_assertions">type assertion</a>
using the reserved word <code>type</code> rather than an actual type.
Cases then match literal types against the dynamic type of the expression
@ -3310,7 +3310,7 @@ in the TypeSwitchGuard.
The type in a case may be <code>nil</code>
<a href="#Predeclared_identifiers">Predeclared identifiers</a>);
that case is used when the expression in the TypeSwitchGuard
is a nil interface value.
is a <code>nil</code> interface value.
</p>
<p>