fix: misspell (#1667)

This commit is contained in:
mlboy 2020-05-30 00:49:22 +08:00 committed by GitHub
parent 0d88650511
commit 15d5142d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ func Extract(addr string) (string, error) {
for _, iface := range ifaces {
ifaceAddrs, err := iface.Addrs()
if err != nil {
// ignore error, interface can dissapear from system
// ignore error, interface can disappear from system
continue
}
if iface.Flags&net.FlagLoopback != 0 {

View File

@ -32,7 +32,7 @@ type Request struct {
err error
}
// Params is the object to pass in to set paramaters
// Params is the object to pass in to set parameters
// on a request.
type Params struct {
LabelSelector map[string]string

View File

@ -227,7 +227,7 @@ func AuthHandler(fn func() auth.Auth) server.HandlerWrapper {
if err != nil && account != nil {
return errors.Forbidden(req.Service(), "Forbidden call made to %v:%v by %v", req.Service(), req.Endpoint(), account.ID)
} else if err != nil {
return errors.Unauthorized(req.Service(), "Unauthorised call made to %v:%v", req.Service(), req.Endpoint())
return errors.Unauthorized(req.Service(), "Unauthorized call made to %v:%v", req.Service(), req.Endpoint())
}
// There is an account, set it in the context