diff --git a/examples/customize-extractor-error/src/with_rejection.rs b/examples/customize-extractor-error/src/with_rejection.rs index 75f6a265..c7a98178 100644 --- a/examples/customize-extractor-error/src/with_rejection.rs +++ b/examples/customize-extractor-error/src/with_rejection.rs @@ -19,7 +19,7 @@ use serde_json::{json, Value}; use thiserror::Error; pub async fn handler( - // `WitRejection` will extract `Json` from the request. If it fails, + // `WithRejection` will extract `Json` from the request. If it fails, // `JsonRejection` will be transform into `ApiError` and returned as response // to the client. //