update 18.10.md (#500)

This commit is contained in:
xin zhao
2018-06-03 15:54:18 +08:00
committed by 无闻
parent 7fae2eae94
commit 4a8399e92f

View File

@@ -4,16 +4,16 @@
```go
if err != nil {
fmt.Printf(Program stopping with error %v, err)
fmt.Printf("Program stopping with error %v", err)
os.Exit(1)
}
```
或者:
或者:
```go
if err != nil {
panic(ERROR occurred: + err.Error())
panic("ERROR occurred: " + err.Error())
}
```