mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
Updated ErrorValueFAQ (markdown)
parent
e08319705b
commit
6f8531f109
@ -17,7 +17,7 @@ You need to be prepared that errors you get may be wrapped.
|
|||||||
if xerrors.Is(err, io.ErrUnexpectedEOF)
|
if xerrors.Is(err, io.ErrUnexpectedEOF)
|
||||||
```
|
```
|
||||||
|
|
||||||
- Checks of the form `if err == nil` need not be changed.
|
- Checks of the form `if err == nil` need not be changed.
|
||||||
|
- Comparisons to `io.EOF` need not be changed, because `io.EOF` should never be wrapped.
|
||||||
|
|
||||||
- Comparisons to `io.EOF` need not be changed, because `io.EOF` should never be wrapped.
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user