Updated ErrorValueFAQ (markdown)

Jonathan Amsterdam 2019-03-22 16:27:02 -04:00
parent 474d3c911e
commit 03688b67c0

@ -26,7 +26,7 @@ You need to be prepared that errors you get may be wrapped.
```
becomes
```
var e *s.PathError
var e *os.PathError
if xerrors.As(err, &e)
```
- Also use this pattern to check whether an error implements an interface. (This is one of those rare cases when a pointer to an interface is appropriate.)