Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
imtbkcat committed Aug 10, 2020
1 parent 2548b76 commit a28915e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terror_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (e *Error) UnmarshalJSON(data []byte) error {
return nil
}

func (e *Error) Warp(err error) *Error {
func (e *Error) Wrap(err error) *Error {
e.cause = err
return e
}
Expand Down

0 comments on commit a28915e

Please sign in to comment.