Skip to content

Commit

Permalink
stabilize tcpstream_connect_timeout (closes #43079)
Browse files Browse the repository at this point in the history
  • Loading branch information
budziq committed Sep 14, 2017
1 parent 84bbd14 commit 199cb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/net/tcp.rs
Expand Up @@ -167,7 +167,7 @@ impl TcpStream {
/// connection request.
///
/// [`SocketAddr`]: ../../std/net/enum.SocketAddr.html
#[unstable(feature = "tcpstream_connect_timeout", issue = "43079")]
#[stable(feature = "tcpstream_connect_timeout", since = "1.22.0")]
pub fn connect_timeout(addr: &SocketAddr, timeout: Duration) -> io::Result<TcpStream> {
net_imp::TcpStream::connect_timeout(addr, timeout).map(TcpStream)
}
Expand Down

0 comments on commit 199cb82

Please sign in to comment.