From: Rob Pike Date: Mon, 30 Mar 2009 23:08:41 +0000 (-0700) Subject: fix last 3 references to 'type guards' X-Git-Tag: weekly.2009-11-06~1942 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f538760552275788a65474156adb9483f7a3aa2b;p=gostls13.git fix last 3 references to 'type guards' R=gri DELTA=3 (0 added, 0 deleted, 3 changed) OCL=26908 CL=26908 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index e90f605605..438a764333 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1658,7 +1658,7 @@ and is shorthand for the declaration syntax
 i, j := 0, 10;
 f := func() int { return 7; }
-ch := new(chan int);
+ch := make(chan int);
 

@@ -3291,10 +3291,10 @@ case x == 4: f3(); A type switch compares types rather than values. It is otherwise similar to an expression switch. It is introduced by special notation in the form of a simple declaration whose right hand side -has the form of a type guard (§Type guards) +has the form of a type assertion (§Type assertions) using the reserved word type rather than an actual type. Cases then match literal types against the dynamic type of the expression -in the type guard. +in the type assertion.