This commit is contained in:
Dave Cheney 2016-04-24 20:57:12 +09:00
parent bca5e1997f
commit 1c843d4ac5
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
// 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