From 02675162142bebfdc280021e22d848b3d941d9e2 Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Wed, 7 Sep 2022 03:40:55 -0500 Subject: [PATCH] net: fix links in `UnixStream` docs (#4985) --- tokio/src/net/unix/stream.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tokio/src/net/unix/stream.rs b/tokio/src/net/unix/stream.rs index e0a707216..2ca90f90d 100644 --- a/tokio/src/net/unix/stream.rs +++ b/tokio/src/net/unix/stream.rs @@ -22,8 +22,8 @@ cfg_io_util! { cfg_net_unix! { /// A structure representing a connected Unix socket. /// - /// This socket can be connected directly with `UnixStream::connect` or accepted - /// from a listener with `UnixListener::incoming`. Additionally, a pair of + /// This socket can be connected directly with [`UnixStream::connect`] or accepted + /// from a listener with [`UnixListener::accept`]. Additionally, a pair of /// anonymous Unix sockets can be created with `UnixStream::pair`. /// /// To shut down the stream in the write direction, you can call the @@ -32,6 +32,7 @@ cfg_net_unix! { /// the stream in one direction. /// /// [`shutdown()`]: fn@crate::io::AsyncWriteExt::shutdown + /// [`UnixListener::accept`]: crate::net::UnixListener::accept pub struct UnixStream { io: PollEvented, }