This commit is contained in:
Unknwon
2016-07-11 04:34:19 +08:00
parent 0ed0d46af8
commit 62da6a89ab

View File

@@ -119,7 +119,7 @@ if serr, ok := err.(*json.SyntaxError); ok {
} }
``` ```
包也可以用额外的方法methods定义特定的错误比如 net.Errot 包也可以用额外的方法methods定义特定的错误比如 net.Error
```go ```go
package net package net