mirror of
https://github.com/pkg/errors.git
synced 2025-05-05 07:00:33 +00:00
README.md: "nor" -> "not", backtick causer (#16)
Note there's inconsistency on the casing of `causer` in the README and function documentation.
This commit is contained in:
parent
7a0abd8f63
commit
42fa80f2ac
@ -29,7 +29,7 @@ type causer interface {
|
|||||||
Cause() error
|
Cause() error
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
`errors.Cause` will recursively retrieve the topmost error which does nor implement causer, which is assumed to be the original cause. For example:
|
`errors.Cause` will recursively retrieve the topmost error which does not implement `causer`, which is assumed to be the original cause. For example:
|
||||||
```
|
```
|
||||||
switch err := errors.Cause(err).(type) {
|
switch err := errors.Cause(err).(type) {
|
||||||
case *MyError:
|
case *MyError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user