Skip to content

Commit

Permalink
Docfix: mio::tcp has been renamed to mio::net in its latest version (s…
Browse files Browse the repository at this point in the history
…napview#164)

This a relic of the old name in the function documentation.
  • Loading branch information
acatton committed Dec 30, 2020
1 parent 4d70f63 commit 208061b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Expand Up @@ -194,7 +194,7 @@ pub fn uri_mode(uri: &Uri) -> Result<Mode> {
/// as configuration is equal to calling `client()` function.
///
/// Use this function if you need a nonblocking handshake support or if you
/// want to use a custom stream like `mio::tcp::TcpStream` or `openssl::ssl::SslStream`.
/// want to use a custom stream like `mio::net::TcpStream` or `openssl::ssl::SslStream`.
/// Any stream supporting `Read + Write` will do.
pub fn client_with_config<Stream, Req>(
request: Req,
Expand All @@ -211,7 +211,7 @@ where
/// Do the client handshake over the given stream.
///
/// Use this function if you need a nonblocking handshake support or if you
/// want to use a custom stream like `mio::tcp::TcpStream` or `openssl::ssl::SslStream`.
/// want to use a custom stream like `mio::net::TcpStream` or `openssl::ssl::SslStream`.
/// Any stream supporting `Read + Write` will do.
pub fn client<Stream, Req>(
request: Req,
Expand Down

0 comments on commit 208061b

Please sign in to comment.