mirror of
https://github.com/pkg/errors.git
synced 2025-05-04 22:49:58 +00:00
spelling
This commit is contained in:
parent
bca5e1997f
commit
1c843d4ac5
@ -2,7 +2,7 @@
|
||||
|
||||
Package errors implements functions for manipulating errors.
|
||||
|
||||
The tranditional error handling idiom in Go is roughly akin to
|
||||
The traditional error handling idiom in Go is roughly akin to
|
||||
```
|
||||
if err != nil {
|
||||
return err
|
||||
@ -23,7 +23,7 @@ In addition, errors.Wrap records the file and line where it was called, allowing
|
||||
|
||||
## Retrieving the cause of an error
|
||||
|
||||
Using errors.Wrap constructs a stack of errors, adding context to the preceeding error. Depending on the nature of the error it may be necessary to recerse the operation of errors.Wrap to retrieve the original error for inspection. Any error value which implements this interface
|
||||
Using errors.Wrap constructs a stack of errors, adding context to the preceding error. Depending on the nature of the error it may be necessary to recurse the operation of errors.Wrap to retrieve the original error for inspection. Any error value which implements this interface
|
||||
```
|
||||
type causer interface {
|
||||
Cause() error
|
||||
|
Loading…
x
Reference in New Issue
Block a user