1
0
mirror of https://github.com/actix/examples synced 2025-02-02 17:39:05 +01:00

Merge pull request #135 from ctm/insignificant_typos

Fixes trivial typos.
This commit is contained in:
Nikolay Kim 2019-06-08 10:02:52 +06:00 committed by GitHub
commit a93d8f41d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
## Middleware example ## Middleware example
```bash ```bash
cd form cd middleware
cargo run cargo run
# Started http server: 127.0.0.1:8080 # Started http server: 127.0.0.1:8080
``` ```

View File

@ -3,10 +3,10 @@ use actix_web::{dev::ServiceRequest, dev::ServiceResponse, Error};
use futures::future::{ok, FutureResult}; use futures::future::{ok, FutureResult};
use futures::{Future, Poll}; use futures::{Future, Poll};
// There are two step in middleware processing. // There are two steps in middleware processing.
// 1. Middleware initialization, middleware factory get called with // 1. Middleware initialization, middleware factory gets called with
// next service in chain as parameter. // next service in chain as parameter.
// 2. Middleware's call method get called with normal request. // 2. Middleware's call method gets called with normal request.
pub struct SayHi; pub struct SayHi;
// Middleware factory is `Transform` trait from actix-service crate // Middleware factory is `Transform` trait from actix-service crate