From f7dd2e62363880588a02da9c7e97c11c395b7c57 Mon Sep 17 00:00:00 2001 From: "Clifford T. Matthews" Date: Thu, 6 Jun 2019 15:20:25 -0600 Subject: [PATCH] Fixes trivial typos. --- middleware/README.md | 2 +- middleware/src/simple.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/middleware/README.md b/middleware/README.md index 056ce654..1cd2b732 100644 --- a/middleware/README.md +++ b/middleware/README.md @@ -1,7 +1,7 @@ ## Middleware example ```bash -cd form +cd middleware cargo run # Started http server: 127.0.0.1:8080 ``` diff --git a/middleware/src/simple.rs b/middleware/src/simple.rs index faf04cfb..789eedab 100644 --- a/middleware/src/simple.rs +++ b/middleware/src/simple.rs @@ -3,10 +3,10 @@ use actix_web::{dev::ServiceRequest, dev::ServiceResponse, Error}; use futures::future::{ok, FutureResult}; use futures::{Future, Poll}; -// There are two step in middleware processing. -// 1. Middleware initialization, middleware factory get called with +// There are two steps in middleware processing. +// 1. Middleware initialization, middleware factory gets called with // 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; // Middleware factory is `Transform` trait from actix-service crate