mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 22:53:43 +08:00
Merge pull request #94 from ox0spy/chapter5-fix-typos
chapter5: fix typos.
This commit is contained in:
@@ -64,9 +64,10 @@ func main() {
|
||||
|
||||
```
|
||||
0 1 2 3 4 6 7 8 9
|
||||
5 is skipped
|
||||
```
|
||||
|
||||
5被跳过了。
|
||||
|
||||
关键字 continue 只能被用于 for 循环中。
|
||||
|
||||
## 链接
|
||||
|
@@ -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):
|
||||
|
||||
|
Reference in New Issue
Block a user