diff options
author | Alice Ryhl <alice@ryhl.io> | 2020-09-13 15:50:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 15:50:40 +0200 |
commit | 4c4699be00bf4aee6218f84ec606e043286a8c2a (patch) | |
tree | 27c83c5c5d85c8e72683167d5d85096d48915c4e /tokio | |
parent | 8d2e3bc575f51815ae7319f1e43fe6c7d664e6e4 (diff) |
doc: fix some links (#2834)
Diffstat (limited to 'tokio')
-rw-r--r-- | tokio/src/io/util/async_read_ext.rs | 2 | ||||
-rw-r--r-- | tokio/src/net/udp/socket.rs | 4 | ||||
-rw-r--r-- | tokio/src/sync/mod.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tokio/src/io/util/async_read_ext.rs b/tokio/src/io/util/async_read_ext.rs index dd280a18..0ab66c28 100644 --- a/tokio/src/io/util/async_read_ext.rs +++ b/tokio/src/io/util/async_read_ext.rs @@ -1067,7 +1067,7 @@ cfg_io_util! { /// (See also the [`crate::fs::read_to_string`] convenience function for /// reading from a file.) /// - /// [`crate::fs::read_to_string`]: crate::fs::read_to_string::read_to_string + /// [`crate::fs::read_to_string`]: fn@crate::fs::read_to_string fn read_to_string<'a>(&'a mut self, dst: &'a mut String) -> ReadToString<'a, Self> where Self: Unpin, diff --git a/tokio/src/net/udp/socket.rs b/tokio/src/net/udp/socket.rs index f9d88372..aeb25fb3 100644 --- a/tokio/src/net/udp/socket.rs +++ b/tokio/src/net/udp/socket.rs @@ -125,7 +125,7 @@ impl UdpSocket { /// should ensure that when the remote cannot receive, the /// [`ErrorKind::WouldBlock`] is properly handled. /// - /// [`ErrorKind::WouldBlock`]: std::io::error::ErrorKind::WouldBlock + /// [`ErrorKind::WouldBlock`]: std::io::ErrorKind::WouldBlock pub fn try_send(&self, buf: &[u8]) -> io::Result<usize> { self.io.get_ref().send(buf) } @@ -209,7 +209,7 @@ impl UdpSocket { /// [`ErrorKind::WouldBlock`] is properly handled. An error can also occur /// if the IP version of the socket does not match that of `target`. /// - /// [`ErrorKind::WouldBlock`]: std::io::error::ErrorKind::WouldBlock + /// [`ErrorKind::WouldBlock`]: std::io::ErrorKind::WouldBlock pub fn try_send_to(&self, buf: &[u8], target: SocketAddr) -> io::Result<usize> { self.io.get_ref().send_to(buf, &target) } diff --git a/tokio/src/sync/mod.rs b/tokio/src/sync/mod.rs index 522205a0..6dce9a7b 100644 --- a/tokio/src/sync/mod.rs +++ b/tokio/src/sync/mod.rs @@ -397,8 +397,8 @@ //! } //! ``` //! -//! [`watch` channel]: crate::sync::watch -//! [`broadcast` channel]: crate::sync::broadcast +//! [`watch` channel]: mod@crate::sync::watch +//! [`broadcast` channel]: mod@crate::sync::broadcast //! //! # State synchronization //! |