diff --git a/actix-service/src/and_then.rs b/actix-service/src/and_then.rs index d0116852..caaf8615 100644 --- a/actix-service/src/and_then.rs +++ b/actix-service/src/and_then.rs @@ -9,7 +9,7 @@ use super::{Service, ServiceFactory}; /// Service for the `and_then` combinator, chaining a computation onto the end /// of another service which completes successfully. /// -/// This is created by the `ServiceExt::and_then` method. +/// This is created by the `Pipeline::and_then` method. pub(crate) struct AndThenService(Rc>); impl AndThenService { diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index df5df317..d1f8ff3a 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -5,7 +5,7 @@ use std::task::{Context, Poll}; use super::{IntoService, IntoServiceFactory, Service, ServiceFactory}; -/// Apply tranform function to a service. +/// Apply transform function to a service. pub fn apply_fn(service: U, f: F) -> Apply where T: Service, @@ -16,7 +16,7 @@ where Apply::new(service.into_service(), f) } -/// Service factory that prodices `apply_fn` service. +/// Service factory that produces `apply_fn` service. pub fn apply_fn_factory( service: U, f: F, diff --git a/actix-service/src/transform.rs b/actix-service/src/transform.rs index dc55f533..b6d3eb8c 100644 --- a/actix-service/src/transform.rs +++ b/actix-service/src/transform.rs @@ -115,7 +115,7 @@ pub trait Transform { /// Creates and returns a new Transform component, asynchronously fn new_transform(&self, service: S) -> Self::Future; - /// Map this transforms's factory error to a different error, + /// Map this transform's factory error to a different error, /// returning a new transform service factory. fn map_init_err(self, f: F) -> TransformMapInitErr where diff --git a/actix-testing/src/lib.rs b/actix-testing/src/lib.rs index 5b0113e1..3ec81061 100644 --- a/actix-testing/src/lib.rs +++ b/actix-testing/src/lib.rs @@ -37,7 +37,7 @@ pub use actix_macros::test; /// ``` pub struct TestServer; -/// Test server runstime +/// Test server runtime pub struct TestServerRuntime { addr: net::SocketAddr, host: String, @@ -107,7 +107,7 @@ impl TestServer { } } - /// Get firat available unused local address + /// Get first available unused local address pub fn unused_addr() -> net::SocketAddr { let addr: net::SocketAddr = "127.0.0.1:0".parse().unwrap(); let socket =