瀏覽代碼

因该方法为内部调用建议改为私有

joezou 10 年之前
父節點
當前提交
ccfefe99dc
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      eBook/06.4.md

+ 4 - 4
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!")
 }
 ```