From 6e7aa462fced37e00a08bf0ba00e23b05d39e897 Mon Sep 17 00:00:00 2001 From: joezou Date: Sun, 25 Oct 2015 21:17:38 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=9B=A0=E8=AF=A5=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=B8=BA=E5=86=85=E9=83=A8=E8=B0=83=E7=94=A8=E5=BB=BA=E8=AE=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=A7=81=E6=9C=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/06.3.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eBook/06.3.md b/eBook/06.3.md index 59510ef..dc1c37f 100644 --- a/eBook/06.3.md +++ b/eBook/06.3.md @@ -27,14 +27,14 @@ package main import "fmt" func main() { - x := Min(1, 3, 2, 0) + x := min(1, 3, 2, 0) fmt.Printf("The minimum is: %d\n", x) arr := []int{7,9,3,5,1} - x = Min(arr...) + x = min(arr...) fmt.Printf("The minimum in the array arr is: %d", x) } -func Min(a ...int) int { +func min(a ...int) int { if len(a)==0 { return 0 } From ccfefe99dc53e80ede462f120a4c9c1cae7d916e Mon Sep 17 00:00:00 2001 From: joezou Date: Sun, 25 Oct 2015 22:22:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=9B=A0=E8=AF=A5=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=B8=BA=E5=86=85=E9=83=A8=E8=B0=83=E7=94=A8=E5=BB=BA=E8=AE=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=A7=81=E6=9C=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/06.4.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eBook/06.4.md b/eBook/06.4.md index 800f8a7..b0682cf 100644 --- a/eBook/06.4.md +++ b/eBook/06.4.md @@ -11,16 +11,16 @@ package main import "fmt" func main() { - Function1() + function1() } -func Function1() { +func function1() { fmt.Printf("In Function1 at the top\n") - defer Function2() + defer function2() fmt.Printf("In Function1 at the bottom!\n") } -func Function2() { +func function2() { fmt.Printf("Function2: Deferred until the end of the calling function!") } ``` From 97c6a9f796d601dc4c89a76bf6fd18fb90682a97 Mon Sep 17 00:00:00 2001 From: joezou Date: Mon, 26 Oct 2015 22:13:10 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E9=94=99=E8=AF=AF=E6=96=B9=E6=B3=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/06.4.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eBook/06.4.md b/eBook/06.4.md index b0682cf..1235ed0 100644 --- a/eBook/06.4.md +++ b/eBook/06.4.md @@ -15,13 +15,13 @@ func main() { } func function1() { - fmt.Printf("In Function1 at the top\n") + fmt.Printf("In function1 at the top\n") defer function2() - fmt.Printf("In Function1 at the bottom!\n") + fmt.Printf("In function1 at the bottom!\n") } func function2() { - fmt.Printf("Function2: Deferred until the end of the calling function!") + fmt.Printf("function2: Deferred until the end of the calling function!") } ```