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 <[email protected]>
  • Loading branch information
cuibuwei committed Apr 13, 2024
1 parent 7d9a6f7 commit 13ca8da
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 13ca8da

Please sign in to comment.