mirror of
https://github.com/actix/actix-web.git
synced 2025-01-21 06:28:07 +00:00
fix doc string
This commit is contained in:
parent
dde266b9ef
commit
77becb9bc0
1 changed files with 3 additions and 3 deletions
|
@ -289,7 +289,7 @@ impl ClientConnector {
|
||||||
/// # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
/// # extern crate futures;
|
/// # extern crate futures;
|
||||||
/// # extern crate tokio;
|
/// # extern crate tokio;
|
||||||
/// # use futures::Future;
|
/// # use futures::{future, Future};
|
||||||
/// # use std::io::Write;
|
/// # use std::io::Write;
|
||||||
/// # use std::process;
|
/// # use std::process;
|
||||||
/// extern crate openssl;
|
/// extern crate openssl;
|
||||||
|
@ -299,7 +299,7 @@ impl ClientConnector {
|
||||||
/// use openssl::ssl::{SslMethod, SslConnector};
|
/// use openssl::ssl::{SslMethod, SslConnector};
|
||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// tokio::run(future::lazy(||
|
/// tokio::run(future::lazy(|| {
|
||||||
///
|
///
|
||||||
/// // Start `ClientConnector` with custom `SslConnector`
|
/// // Start `ClientConnector` with custom `SslConnector`
|
||||||
/// let ssl_conn = SslConnector::builder(SslMethod::tls()).unwrap().build();
|
/// let ssl_conn = SslConnector::builder(SslMethod::tls()).unwrap().build();
|
||||||
|
@ -315,7 +315,7 @@ impl ClientConnector {
|
||||||
/// # process::exit(0);
|
/// # process::exit(0);
|
||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// })
|
/// })
|
||||||
/// );
|
/// }));
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
pub fn with_connector(connector: SslConnector) -> ClientConnector {
|
pub fn with_connector(connector: SslConnector) -> ClientConnector {
|
||||||
|
|
Loading…
Reference in a new issue