Skip to content
/ rust Public
forked from rust-lang/rust

Commit

Permalink
stabilize tcpstream_connect_timeout (closes rust-lang#43079)
Browse files Browse the repository at this point in the history
  • Loading branch information
budziq authored and dtolnay committed Sep 25, 2017
1 parent ea1fd7d commit 88063ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/net/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,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 88063ca

Please sign in to comment.