This commit is contained in:
Aaron Turon 2017-01-09 16:56:56 -08:00
parent 41b0d0da8d
commit a303a2e177
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ use std::sync::Arc;
/// type Error = http::Error;
/// type Future = Box<Future<Item = Self::Response, Error = http::Error>>;
///
/// fn call(&self, req: http::Request) -> Self::Fut {
/// fn call(&self, req: http::Request) -> Self::Future {
/// // Create the HTTP response
/// let resp = http::Response::ok()
/// .with_body(b"hello world\n");
@ -120,7 +120,7 @@ use std::sync::Arc;
/// type Error = T::Error;
/// type Future = Box<Future<Item = Self::Response, Error = Self::Error>>;
///
/// fn call(&self, req: Self::Req) -> Self::Fut {
/// fn call(&self, req: Self::Req) -> Self::Future {
/// let timeout = self.timer.timeout(self.delay)
/// .and_then(|timeout| Err(Self::Error::from(timeout)));
///