mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:43:26 +08:00
modify reason: wrong double quotes format (#356)
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
```go
|
||||
func protect(g func()) {
|
||||
defer func() {
|
||||
log.Println(“done”)
|
||||
log.Println("done")
|
||||
// Println executes normally even if there is a panic
|
||||
if err := recover(); err != nil {
|
||||
log.Printf(“run time panic: %v”, err)
|
||||
log.Printf("run time panic: %v", err)
|
||||
}
|
||||
}()
|
||||
log.Println(“start”)
|
||||
log.Println("start")
|
||||
g() // possible runtime-error
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user