Skip to content

Commit dd5fc8e

Browse files
Rollup merge of rust-lang#84835 - wcampbell0x2a:add-issue-34202-link, r=m-ou-se
Add link to Issue rust-lang#34202 in udp docs
2 parents e327a82 + e4250a0 commit dd5fc8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/std/src/net/udp.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ impl UdpSocket {
159159
/// This will return an error when the IP version of the local socket
160160
/// does not match that returned from [`ToSocketAddrs`].
161161
///
162-
/// See issue #34202 for more details.
162+
/// See [Issue #34202] for more details.
163163
///
164164
/// # Examples
165165
///
@@ -169,6 +169,8 @@ impl UdpSocket {
169169
/// let socket = UdpSocket::bind("127.0.0.1:34254").expect("couldn't bind to address");
170170
/// socket.send_to(&[0; 10], "127.0.0.1:4242").expect("couldn't send data");
171171
/// ```
172+
///
173+
/// [Issue #34202]: https://github.com/rust-lang/rust/issues/34202
172174
#[stable(feature = "rust1", since = "1.0.0")]
173175
pub fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], addr: A) -> io::Result<usize> {
174176
match addr.to_socket_addrs()?.next() {

0 commit comments

Comments
 (0)