Skip to content

Commit

Permalink
Fix typo (#2118)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn authored Jul 25, 2023
1 parent b20e66e commit 5567d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axum/src/routing/path_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@ where

url_params::insert_url_params(req.extensions_mut(), match_.params);

let endpont = self
let endpoint = self
.routes
.get_mut(&id)
.expect("no route for id. This is a bug in axum. Please file an issue");

match endpont {
match endpoint {
Endpoint::MethodRouter(method_router) => {
Ok(method_router.call_with_state(req, state))
}
Expand Down

0 comments on commit 5567d66

Please sign in to comment.