diff --git a/src/socket/tcp.rs b/src/socket/tcp.rs index 9b4c575..60dba53 100644 --- a/src/socket/tcp.rs +++ b/src/socket/tcp.rs @@ -377,8 +377,8 @@ impl<'a> TcpSocket<'a> { /// The local address may optionally be provided. /// /// This function returns an error if the socket was open; see [is_open](#method.is_open). - /// It also returns an error if the local or remote port is zero, or if - /// the local or remote address is unspecified. + /// It also returns an error if the local or remote port is zero, or if the remote address + /// is unspecified. pub fn connect(&mut self, remote_endpoint: T, local_endpoint: U) -> Result<(), ()> where T: Into, U: Into { let remote_endpoint = remote_endpoint.into();