]> Cypherpunks repositories - gostls13.git/commitdiff
tweaks
authorRobert Griesemer <gri@golang.org>
Thu, 27 Aug 2009 23:44:17 +0000 (16:44 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 27 Aug 2009 23:44:17 +0000 (16:44 -0700)
R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=33994
CL=33994

doc/go_spec.html

index 92776959c9ccdd1d287b97a0f15a167b540e06e8..e10dd5f0cde87c74a7bbb6660e4bbbdf0bc2445e 100644 (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>
@@ -3366,7 +3366,7 @@ if v == nil {
 <p>    
 The type switch guard may be preceded by a simple statement, which
 executes before the guard is evaluated.
-</p> 
+</p>
 
 <p>
 The "fallthrough" statement is not permitted in a type switch.