1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 07:29:02 +02:00
* fix typo

* fix another typo
This commit is contained in:
Marvin
2024-10-15 21:02:25 +02:00
committed by GitHub
parent 30edc4885d
commit f786600af3
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ use actix_web::{
App, Error,
};
async fn my_midleware(
async fn my_middleware(
req: ServiceRequest,
next: Next<impl MessageBody>,
) -> Result<ServiceResponse<impl MessageBody>, Error> {
@ -19,6 +19,6 @@ async fn my_midleware(
#[actix_web::main]
async fn main() {
let app = App::new().wrap(from_fn(my_midleware));
let app = App::new().wrap(from_fn(my_middleware));
}
// </from-fn>