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,7 +4,7 @@
```go
if err != nil {
fmt.Printf(Program stopping with error %v, err)
fmt.Printf("Program stopping with error %v", err)
os.Exit(1)
}
```
@@ -13,7 +13,7 @@ if err != nil {
```go
if err != nil {
panic(ERROR occurred: + err.Error())
panic("ERROR occurred: " + err.Error())
}
```