From 255cd4917d0066850154085a5e63bd3beecc5933 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 24 May 2018 22:04:14 -0700 Subject: [PATCH] fix doc test --- 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 e9301ae9d..1d4f6dbf6 100644 --- a/src/client/connector.rs +++ b/src/client/connector.rs @@ -286,9 +286,9 @@ impl ClientConnector { /// /// // Start `ClientConnector` with custom `SslConnector` /// let ssl_conn = SslConnector::builder(SslMethod::tls()).unwrap().build(); - /// let conn: Address<_> = ClientConnector::with_connector(ssl_conn).start(); + /// let conn: Addr = ClientConnector::with_connector(ssl_conn).start(); /// - /// Arbiter::handle().spawn({ + /// Arbiter::spawn( /// conn.send( /// Connect::new("https://www.rust-lang.org").unwrap()) // <- connect to host /// .map_err(|_| ()) @@ -299,7 +299,7 @@ impl ClientConnector { /// # Arbiter::system().do_send(actix::msgs::SystemExit(0)); /// Ok(()) /// }) - /// }); + /// ); /// /// sys.run(); /// }