mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:43:26 +08:00
Formatting some sample code (#529)
* Update 01.2.md 删除: - 不支持断言 * Formatting 问题5.1 code * Formatting 问题5.3 code * Correct the translation - correct `令 v := map1[key1] 可以将 key1 对应的值赋值为 v` to `令 v := map1[key1] 可以将 key1 对应的值赋值给 v`
This commit is contained in:
@@ -87,7 +87,7 @@ for { //since there are no checks, this is an infinite loop
|
||||
if i >= 3 { break }
|
||||
//break out of this for loop when this condition is met
|
||||
fmt.Println("Value of i is:", i)
|
||||
i++;
|
||||
i++
|
||||
}
|
||||
fmt.Println("A statement just after for loop.")
|
||||
```
|
||||
|
Reference in New Issue
Block a user