Skip to content

Commit

Permalink
chore: fix function name in comment
Browse files Browse the repository at this point in the history
Signed-off-by: cuibuwei <cuibuwei@gmail.com>
  • Loading branch information
cuibuwei authored and AlexVulaj committed May 4, 2024
1 parent 7d9a6f7 commit cfec64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func CurrentRoute(r *http.Request) *Route {
return nil
}

// requestWithRouteAndVars adds the matched vars to the request ctx.
// requestWithVars adds the matched vars to the request ctx.
// It shortcuts the operation when the vars are empty.
func requestWithVars(r *http.Request, vars map[string]string) *http.Request {
if len(vars) == 0 {
Expand Down

0 comments on commit cfec64d

Please sign in to comment.