mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:21:38 +08:00
修改字符串错误方法名
This commit is contained in:
@@ -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!")
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user