Selaa lähdekoodia

fix 拼写错误

fix switch拼写错误
htlhenry 9 vuotta sitten
vanhempi
commit
685a7580da
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      eBook/11.4.md

+ 2 - 2
eBook/11.4.md

@@ -1,6 +1,6 @@
 # 11.4 类型判断:type-switch
 
-接口变量的类型也可以使用一种特殊形式的 `swtich` 来检测:**type-swtich** (下面是示例 11.4 的第二部分):
+接口变量的类型也可以使用一种特殊形式的 `switch` 来检测:**type-switch** (下面是示例 11.4 的第二部分):
 
 ```go
 switch t := areaIntf.(type) {
@@ -74,4 +74,4 @@ func classifier(items ...interface{}) {
 
 - [目录](directory.md)
 - 上一节:[类型断言:如何检测和转换接口变量的类型](11.3.md)
-- 下一节:[测试一个值是否实现了某个接口](11.5.md)
+- 下一节:[测试一个值是否实现了某个接口](11.5.md)