From 24bb0eab9d9b98f23fedf984dd038fb6696a5ec7 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 27 Jul 2017 11:26:39 +0000 Subject: [PATCH] Update a stale docstring. --- src/socket/tcp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();