diff --git a/README.md b/README.md index 159e886d8..70eae38a4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Build Status GoDoc codeCov -Go Report Card +Go Report Card License Awesome Go Discord diff --git a/README_zh.md b/README_zh.md index 2e5d14aed..8f53cb99c 100644 --- a/README_zh.md +++ b/README_zh.md @@ -4,7 +4,7 @@ Build Status GoDoc codeCov -Go Report Card +Go Report Card License Awesome Go Discord diff --git a/errors/errors.go b/errors/errors.go index 4126d61be..c9f6ef00d 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -69,7 +69,7 @@ func Errorf(code int, reason, format string, a ...interface{}) error { return New(code, reason, fmt.Sprintf(format, a...)) } -// Code returns the http code for a error. +// Code returns the http code for an error. // It supports wrapped errors. func Code(err error) int { if err == nil { diff --git a/log/global.go b/log/global.go index 400bf7a88..0e98bae50 100644 --- a/log/global.go +++ b/log/global.go @@ -8,7 +8,7 @@ import ( var global = &loggerAppliance{} // loggerAppliance is the proxy of `Logger` to -// make logger change will effect to all sub-logger. +// make logger change will affect all sub-logger. type loggerAppliance struct { lock sync.Mutex Logger diff --git a/log/value.go b/log/value.go index 968427bbf..86e915597 100644 --- a/log/value.go +++ b/log/value.go @@ -28,7 +28,7 @@ func Value(ctx context.Context, v interface{}) interface{} { return v } -// Caller returns returns a Valuer that returns a pkg/file:line description of the caller. +// Caller returns a Valuer that returns a pkg/file:line description of the caller. func Caller(depth int) Valuer { return func(context.Context) interface{} { d := depth