1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00

fix doc string

This commit is contained in:
Nikolay Kim 2018-05-29 18:48:29 -07:00
parent dde266b9ef
commit 77becb9bc0

View File

@ -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 {