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/src/net | |
parent | 8d2e3bc575f51815ae7319f1e43fe6c7d664e6e4 (diff) |
doc: fix some links (#2834)
Diffstat (limited to 'tokio/src/net')
-rw-r--r-- | tokio/src/net/udp/socket.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |