Update 12.1.md

This commit is contained in:
Jeff
2015-03-17 10:39:41 +08:00
parent b850c01a30
commit 4b1329f02b

View File

@@ -81,7 +81,6 @@ input, err := inputReader.ReadString('\n')
第二个例子从键盘读取输入,使用了 `switch` 语句: 第二个例子从键盘读取输入,使用了 `switch` 语句:
**Listing 12.3—switch_input.go:** **Listing 12.3—switch_input.go:**
```go ```go
package main package main
import ( import (
@@ -123,7 +122,7 @@ func main() {
default: fmt.Printf("You are not welcome here! Goodbye!\n") default: fmt.Printf("You are not welcome here! Goodbye!\n")
} }
} }
``` ```
注意Unix和Windows的行结束符是不同的 注意Unix和Windows的行结束符是不同的