mirror of
https://github.com/pkg/errors.git
synced 2025-05-31 11:42:45 +00:00
fix typos
This commit is contained in:
parent
3cdd33210d
commit
2c9da72fa5
@ -39,7 +39,7 @@ See [the documentation for `Frame.Format`](https://godoc.org/github.com/pkg/erro
|
||||
|
||||
## Retrieving the cause of an error
|
||||
|
||||
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 can be inspected by `errors.Cause`.
|
||||
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 reverse the operation of errors.Wrap to retrieve the original error for inspection. Any error value which implements this interface can be inspected by `errors.Cause`.
|
||||
```go
|
||||
type causer interface {
|
||||
Cause() error
|
||||
|
Loading…
x
Reference in New Issue
Block a user