diff --git a/actix-rt/src/arbiter.rs b/actix-rt/src/arbiter.rs index a5cbe8e0..16534476 100644 --- a/actix-rt/src/arbiter.rs +++ b/actix-rt/src/arbiter.rs @@ -42,8 +42,8 @@ impl fmt::Debug for ArbiterCommand { #[derive(Debug)] /// Arbiters provide an asynchronous execution environment for actors, functions -/// and futures. When an Arbiter is created, they spawn a new OS thread, and -/// host an event loop. Some Arbiter functions execute on the current thread. +/// and futures. When an Arbiter is created, it spawns a new OS thread, and +/// hosts an event loop. Some Arbiter functions execute on the current thread. pub struct Arbiter { sender: UnboundedSender, thread_handle: Option>, diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs index 00417706..d018e0e4 100644 --- a/actix-service/src/lib.rs +++ b/actix-service/src/lib.rs @@ -57,7 +57,7 @@ pub use self::transform::{apply, Transform}; /// /// fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { ... } /// -/// fn call(&mut self) -> Self::Future { ... } +/// fn call(&mut self, req: Self::Request) -> Self::Future { ... } /// } /// ``` /// @@ -82,7 +82,7 @@ pub trait Service { /// Returns `Ready` when the service is able to process requests. /// - /// If the service is at capacity, then `NotReady` is returned and the task + /// If the service is at capacity, then `Pending` is returned and the task /// is notified when the service becomes ready again. This function is /// expected to be called while on a task. ///