From 4387085047b9dc06348f50d558eca481f99913fe Mon Sep 17 00:00:00 2001 From: Chen Xinyuan Date: Wed, 9 Mar 2022 10:51:17 +0800 Subject: [PATCH] fix: fix some typos (#1869) --- README.md | 2 +- README_zh.md | 2 +- errors/errors.go | 2 +- log/global.go | 2 +- log/value.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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