fix typos

This commit is contained in:
Dave Cheney 2016-06-07 17:26:48 +10:00
parent 3cdd33210d
commit 2c9da72fa5
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -8,7 +8,7 @@ import (
"strings"
)
// Frame repesents an activation record.
// Frame represents an activation record.
type Frame uintptr
// pc returns the program counter for this frame;