Skip to content

Commit

Permalink
net: rename the argument for send_to (#7146)
Browse files Browse the repository at this point in the history
  • Loading branch information
mox692 authored Feb 8, 2025
1 parent 8713d39 commit eb1a2ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio/src/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1164,8 +1164,8 @@ impl UdpSocket {
/// Ok(())
/// }
/// ```
pub async fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], target: A) -> io::Result<usize> {
let mut addrs = to_socket_addrs(target).await?;
pub async fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], addr: A) -> io::Result<usize> {
let mut addrs = to_socket_addrs(addr).await?;

match addrs.next() {
Some(target) => self.send_to_addr(buf, target).await,
Expand Down

0 comments on commit eb1a2ee

Please sign in to comment.