mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
committed by
Toby Lawrence
parent
7dc6404726
commit
82c5baa09b
@@ -44,7 +44,7 @@ impl TcpStream {
|
||||
///
|
||||
/// This function will create a new TCP socket and attempt to connect it to
|
||||
/// the `addr` provided. The returned future will be resolved once the
|
||||
/// stream has successfully connected, or it wil return an error if one
|
||||
/// stream has successfully connected, or it will return an error if one
|
||||
/// occurs.
|
||||
pub fn connect(addr: &SocketAddr) -> ConnectFuture {
|
||||
use self::ConnectFutureState::*;
|
||||
|
||||
Reference in New Issue
Block a user