From 9bcd573c8c765007fb70519ecce38ebd00b1a9d4 Mon Sep 17 00:00:00 2001 From: joezou Date: Sun, 1 Nov 2015 15:46:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=BF=99=E9=87=8C=E9=97=AE=E7=9A=84?= =?UTF-8?q?=E6=98=AFitem=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/07.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/07.3.md b/eBook/07.3.md index f169ed1..ca7e8bd 100644 --- a/eBook/07.3.md +++ b/eBook/07.3.md @@ -75,7 +75,7 @@ for row := range screen { **问题 7.5** 假设我们有如下数组:`items := [...]int{10, 20, 30, 40, 50}` -a) 如果我们写了如下的 for 循环,那么执行完 for 循环后的 `items` 的值是多少?如果你不确定的话可以测试一下:) +a) 如果我们写了如下的 for 循环,那么执行完 for 循环后的 `item` 的值是多少?如果你不确定的话可以测试一下:) ```go for _, item := range items { From d27f6e31bb5f739682d6e2fab7d607a973e7ea1a Mon Sep 17 00:00:00 2001 From: joezou Date: Mon, 2 Nov 2015 22:39:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/08.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/08.2.md b/eBook/08.2.md index 7e1fdcf..e526502 100644 --- a/eBook/08.2.md +++ b/eBook/08.2.md @@ -46,7 +46,7 @@ func main() { map1["Washington"] = 25 value, isPresent = map1["Beijing"] if isPresent { - fmt.Printf("The value of \"Beijin\" in map1 is: %d\n", value) + fmt.Printf("The value of \"Beijing\" in map1 is: %d\n", value) } else { fmt.Printf("map1 does not contain Beijing") } From 889301528b0815043746556a5daf7a12ac9eef0d Mon Sep 17 00:00:00 2001 From: joezou Date: Mon, 2 Nov 2015 23:09:01 +0800 Subject: [PATCH 3/3] =?UTF-8?q?Revert=20"=E8=BF=99=E9=87=8C=E9=97=AE?= =?UTF-8?q?=E7=9A=84=E6=98=AFitem=3F"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9bcd573c8c765007fb70519ecce38ebd00b1a9d4. --- eBook/07.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/07.3.md b/eBook/07.3.md index ca7e8bd..f169ed1 100644 --- a/eBook/07.3.md +++ b/eBook/07.3.md @@ -75,7 +75,7 @@ for row := range screen { **问题 7.5** 假设我们有如下数组:`items := [...]int{10, 20, 30, 40, 50}` -a) 如果我们写了如下的 for 循环,那么执行完 for 循环后的 `item` 的值是多少?如果你不确定的话可以测试一下:) +a) 如果我们写了如下的 for 循环,那么执行完 for 循环后的 `items` 的值是多少?如果你不确定的话可以测试一下:) ```go for _, item := range items {