From 4bbba803c112e407316c06c8555ad3800745650c Mon Sep 17 00:00:00 2001 From: amosonn Date: Sat, 11 Jan 2020 23:44:01 +0100 Subject: [PATCH] Fix Service documentation (#85) --- actix-service/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. ///