From 77becb9bc0a9610c561c9c1d6d4ab15323375a82 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 29 May 2018 18:48:29 -0700 Subject: [PATCH] fix doc string --- src/client/connector.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/connector.rs b/src/client/connector.rs index 39f83488..65d4ded0 100644 --- a/src/client/connector.rs +++ b/src/client/connector.rs @@ -289,7 +289,7 @@ impl ClientConnector { /// # extern crate actix_web; /// # extern crate futures; /// # extern crate tokio; - /// # use futures::Future; + /// # use futures::{future, Future}; /// # use std::io::Write; /// # use std::process; /// extern crate openssl; @@ -299,7 +299,7 @@ impl ClientConnector { /// use openssl::ssl::{SslMethod, SslConnector}; /// /// fn main() { - /// tokio::run(future::lazy(|| + /// tokio::run(future::lazy(|| { /// /// // Start `ClientConnector` with custom `SslConnector` /// let ssl_conn = SslConnector::builder(SslMethod::tls()).unwrap().build(); @@ -315,7 +315,7 @@ impl ClientConnector { /// # process::exit(0); /// Ok(()) /// }) - /// ); + /// })); /// } /// ``` pub fn with_connector(connector: SslConnector) -> ClientConnector {