mirror of
https://github.com/golang/go
synced 2024-11-24 22:57:57 -07:00
doc: fix typo.
Fixes #218 R=r CC=golang-dev https://golang.org/cl/155067
This commit is contained in:
parent
d3b1565716
commit
4085364a20
@ -639,7 +639,7 @@ have the corresponding type in each clause.
|
|||||||
<pre>
|
<pre>
|
||||||
switch t := interfaceValue.(type) {
|
switch t := interfaceValue.(type) {
|
||||||
default:
|
default:
|
||||||
fmt.Printf("unexpected type %T", type); // %T prints type
|
fmt.Printf("unexpected type %T", t); // %T prints type
|
||||||
case bool:
|
case bool:
|
||||||
fmt.Printf("boolean %t\n", t);
|
fmt.Printf("boolean %t\n", t);
|
||||||
case int:
|
case int:
|
||||||
|
Loading…
Reference in New Issue
Block a user