summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZahari Dichev <zaharidichev@gmail.com>2020-10-27 18:34:17 +0200
committerGitHub <noreply@github.com>2020-10-27 09:34:17 -0700
commit38605c5c851551f52eb96b93be4f224588590111 (patch)
tree5813e4598d514cd54b4e3bd27d2f337020513584
parentfe2b9976755407b85c82b5cdee9d8c5e16e3d6c6 (diff)
net: change mention of net2 (#3056)
-rw-r--r--tokio/src/net/tcp/listener.rs2
-rw-r--r--tokio/src/net/udp/socket.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/net/tcp/listener.rs b/tokio/src/net/tcp/listener.rs
index 50130a28..118dca23 100644
--- a/tokio/src/net/tcp/listener.rs
+++ b/tokio/src/net/tcp/listener.rs
@@ -203,7 +203,7 @@ impl TcpListener {
/// about the underlying listener; it is left up to the user to set it in
/// non-blocking mode.
///
- /// This API is typically paired with the `net2` crate and the `TcpBuilder`
+ /// This API is typically paired with the `socket2` crate and the `Socket`
/// type to build up and customize a listener before it's shipped off to the
/// backing event loop. This allows configuration of options like
/// `SO_REUSEPORT`, binding to multiple addresses, etc.
diff --git a/tokio/src/net/udp/socket.rs b/tokio/src/net/udp/socket.rs
index 00c2b0ec..ce6f2ca8 100644
--- a/tokio/src/net/udp/socket.rs
+++ b/tokio/src/net/udp/socket.rs
@@ -165,7 +165,7 @@ impl UdpSocket {
/// about the underlying socket; it is left up to the user to set it in
/// non-blocking mode.
///
- /// This can be used in conjunction with net2's `UdpBuilder` interface to
+ /// This can be used in conjunction with socket2's `Socket` interface to
/// configure a socket before it's handed off, such as setting options like
/// `reuse_address` or binding to multiple addresses.
///