Skip to content

Commit

Permalink
Rollup merge of rust-lang#84835 - wcampbell0x2a:add-issue-34202-link,…
Browse files Browse the repository at this point in the history
… r=m-ou-se

Add link to Issue rust-lang#34202 in udp docs
  • Loading branch information
GuillaumeGomez authored May 3, 2021
2 parents e327a82 + e4250a0 commit dd5fc8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/std/src/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand All @@ -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() {
Expand Down

0 comments on commit dd5fc8e

Please sign in to comment.