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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user