瀏覽代碼

fix typos

Dave Cheney 9 年之前
父節點
當前提交
2c9da72fa5
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      README.md
  2. 1 1
      stack.go

+ 1 - 1
README.md

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

+ 1 - 1
stack.go

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