diff --git a/src/net/tcp.rs b/src/net/tcp.rs index b3b4b8d77..c6c65983f 100644 --- a/src/net/tcp.rs +++ b/src/net/tcp.rs @@ -27,9 +27,8 @@ pub struct Incoming { impl TcpListener { /// Create a new TCP listener associated with this event loop. /// - /// The TCP listener will bind to the provided `addr` address, if available, - /// and will be returned as a future. The returned future, if resolved - /// successfully, can then be used to accept incoming connections. + /// The TCP listener will bind to the provided `addr` address, if available. + /// If the result is `Ok`, the socket has successfully bound. pub fn bind(addr: &SocketAddr, handle: &Handle) -> io::Result { let l = try!(mio::tcp::TcpListener::bind(addr)); TcpListener::new(l, handle) diff --git a/src/net/udp.rs b/src/net/udp.rs index 6d031623b..ceaf36156 100644 --- a/src/net/udp.rs +++ b/src/net/udp.rs @@ -16,9 +16,7 @@ impl UdpSocket { /// Create a new UDP socket bound to the specified address. /// /// This function will create a new UDP socket and attempt to bind it to the - /// `addr` provided. The returned future will be resolved once the socket - /// has successfully bound. If an error happens during the binding or during - /// the socket creation, that error will be returned to the future instead. + /// `addr` provided. If the result is `Ok`, the socket has successfully bound. pub fn bind(addr: &SocketAddr, handle: &Handle) -> io::Result { let udp = try!(mio::udp::UdpSocket::bind(addr)); UdpSocket::new(udp, handle)