Skip to content

Commit

Permalink
chore: fix some typos in comments (#4335)
Browse files Browse the repository at this point in the history
  • Loading branch information
milosgajdos committed Apr 24, 2024
2 parents d61d8eb + 2fe3442 commit 03e58df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion registry/api/v2/urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (ub *URLBuilder) BuildBlobUploadChunkURL(name reference.Named, uuid string,
return appendValuesURL(uploadURL, values...).String(), nil
}

// clondedRoute returns a clone of the named route from the router. Routes
// cloneRoute returns a clone of the named route from the router. Routes
// must be cloned to avoid modifying them during url generation.
func (ub *URLBuilder) cloneRoute(name string) clonedRoute {
route := new(mux.Route)
Expand Down
2 changes: 1 addition & 1 deletion registry/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var (
)

// InitFunc is the type of an AccessController factory function and is used
// to register the constructor for different AccesController backends.
// to register the constructor for different AccessController backends.
type InitFunc func(options map[string]interface{}) (AccessController, error)

var accessControllers map[string]InitFunc
Expand Down
2 changes: 1 addition & 1 deletion registry/auth/token/accesscontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (ac authChallenge) challengeParams(r *http.Request) string {
return str
}

// SetChallenge sets the WWW-Authenticate value for the response.
// SetHeaders sets the WWW-Authenticate value for the response.
func (ac authChallenge) SetHeaders(r *http.Request, w http.ResponseWriter) {
w.Header().Add("WWW-Authenticate", ac.challengeParams(r))
}
Expand Down

0 comments on commit 03e58df

Please sign in to comment.