From d9e471220e7d906c3d406c1e9ecd44fd3db702a4 Mon Sep 17 00:00:00 2001 From: Sergey Shepelev Date: Thu, 11 Oct 2018 16:49:13 +0500 Subject: [PATCH] typo --- README.md | 2 +- error.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. //