mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:43:26 +08:00
chapter5: fix typos.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 5.6 标签与 goto
|
||||
|
||||
for、switch 或 select 语句都可以配合标签(label)形式的标识符使用,即某一行行第一个以分号结尾的单词(gofmt 会将后续代码自动移至下一行)。
|
||||
for、switch 或 select 语句都可以配合标签(label)形式的标识符使用,即某一行第一个以冒号(":")结尾的单词(gofmt 会将后续代码自动移至下一行)。
|
||||
|
||||
Listing 5.13 [for6.go](examples/chapter_5/for6.go):
|
||||
|
||||
@@ -97,7 +97,7 @@ fmt.Println(“A statement just after for loop.”)
|
||||
```
|
||||
for i := 0; i<7 ; i++ {
|
||||
if i%2 == 0 { continue }
|
||||
fmt.Println(“Odd:”, i)
|
||||
fmt.Println(“Odd:”, i)
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user