diff --git a/README.md b/README.md index 74882128..4584d100 100644 --- a/README.md +++ b/README.md @@ -595,7 +595,7 @@ For example: ``` go func NewErrWithCause(other error, format string, args ...interface{}) Err ``` -NewErrWithCause is used to return an Err with case by other error for the purpose of embedding in other +NewErrWithCause is used to return an Err with cause by other error for the purpose of embedding in other structures. The location is not specified, and needs to be set with a call to SetLocation. diff --git a/error.go b/error.go index b7df7358..d67e3386 100644 --- a/error.go +++ b/error.go @@ -52,7 +52,7 @@ func NewErr(format string, args ...interface{}) Err { } } -// NewErrWithCause is used to return an Err with case by other error for the purpose of embedding in other +// NewErrWithCause is used to return an Err with cause by other error for the purpose of embedding in other // structures. The location is not specified, and needs to be set with a call // to SetLocation. //