1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-11-06 08:59:18 +02:00

fix: fix some typos (#1869)

This commit is contained in:
Chen Xinyuan
2022-03-09 10:51:17 +08:00
committed by GitHub
parent 79057d4326
commit 4387085047
5 changed files with 5 additions and 5 deletions

View File

@@ -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 {