about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-03 15:08:02 +0200
committerGitHub <noreply@github.com>2021-05-03 15:08:02 +0200
commitdd5fc8edb83bf54f37b27a95b56f9dc7390c8d32 (patch)
tree8186d9e4c241df8f5321e96a376dda5a553bcb85 /library/std/src
parente327a823d8b64e294e490efeca7829f383aa119d (diff)
parente4250a014e57fd4e4c49b968f9104cb784157c34 (diff)
downloadrust-dd5fc8edb83bf54f37b27a95b56f9dc7390c8d32.tar.gz
rust-dd5fc8edb83bf54f37b27a95b56f9dc7390c8d32.zip
Rollup merge of #84835 - wcampbell0x2a:add-issue-34202-link, r=m-ou-se
Add link to Issue #34202 in udp docs
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/net/udp.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/std/src/net/udp.rs b/library/std/src/net/udp.rs
index b9af5992dff..18297139b7b 100644
--- a/library/std/src/net/udp.rs
+++ b/library/std/src/net/udp.rs
@@ -159,7 +159,7 @@ impl UdpSocket {
     /// This will return an error when the IP version of the local socket
     /// does not match that returned from [`ToSocketAddrs`].
     ///
-    /// See issue #34202 for more details.
+    /// See [Issue #34202] for more details.
     ///
     /// # Examples
     ///
@@ -169,6 +169,8 @@ impl UdpSocket {
     /// let socket = UdpSocket::bind("127.0.0.1:34254").expect("couldn't bind to address");
     /// socket.send_to(&[0; 10], "127.0.0.1:4242").expect("couldn't send data");
     /// ```
+    ///
+    /// [Issue #34202]: https://github.com/rust-lang/rust/issues/34202
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], addr: A) -> io::Result<usize> {
         match addr.to_socket_addrs()?.next() {