]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix typo.
authorAdam Langley <agl@golang.org>
Mon, 16 Nov 2009 19:56:18 +0000 (11:56 -0800)
committerRob Pike <r@golang.org>
Mon, 16 Nov 2009 19:56:18 +0000 (11:56 -0800)
Fixes #218

R=r
CC=golang-dev
https://golang.org/cl/155067

doc/effective_go.html

index cd6ac536027e0ecab7e0653947b45f2efc92cbff..694f05d1019526b6ccd6cd8bc0784bfa11324d62 100644 (file)
@@ -639,7 +639,7 @@ have the corresponding type in each clause.
 <pre>
 switch t := interfaceValue.(type) {
 default:
-       fmt.Printf("unexpected type %T", type);  // %T prints type
+       fmt.Printf("unexpected type %T", t);  // %T prints type
 case bool:
        fmt.Printf("boolean %t\n", t);
 case int: