From a3c58a18ed7181a524987c8f77ecef525187bca0 Mon Sep 17 00:00:00 2001 From: Horu <73709188+HigherOrderLogic@users.noreply.github.com> Date: Sat, 1 Oct 2022 20:49:15 +0700 Subject: [PATCH] Fix typo in example (#1439) --- examples/customize-extractor-error/src/with_rejection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. //