Update a stale docstring.
This commit is contained in:
parent
a3423b35f4
commit
24bb0eab9d
|
@ -377,8 +377,8 @@ impl<'a> TcpSocket<'a> {
|
||||||
/// The local address may optionally be provided.
|
/// The local address may optionally be provided.
|
||||||
///
|
///
|
||||||
/// This function returns an error if the socket was open; see [is_open](#method.is_open).
|
/// 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
|
/// It also returns an error if the local or remote port is zero, or if the remote address
|
||||||
/// the local or remote address is unspecified.
|
/// is unspecified.
|
||||||
pub fn connect<T, U>(&mut self, remote_endpoint: T, local_endpoint: U) -> Result<(), ()>
|
pub fn connect<T, U>(&mut self, remote_endpoint: T, local_endpoint: U) -> Result<(), ()>
|
||||||
where T: Into<IpEndpoint>, U: Into<IpEndpoint> {
|
where T: Into<IpEndpoint>, U: Into<IpEndpoint> {
|
||||||
let remote_endpoint = remote_endpoint.into();
|
let remote_endpoint = remote_endpoint.into();
|
||||||
|
|
Loading…
Reference in New Issue