Skip to content

Commit eb1a2ee

Browse files
authored
net: rename the argument for send_to (#7146)
1 parent 8713d39 commit eb1a2ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tokio/src/net/udp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1164,8 +1164,8 @@ impl UdpSocket {
11641164
/// Ok(())
11651165
/// }
11661166
/// ```
1167-
pub async fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], target: A) -> io::Result<usize> {
1168-
let mut addrs = to_socket_addrs(target).await?;
1167+
pub async fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], addr: A) -> io::Result<usize> {
1168+
let mut addrs = to_socket_addrs(addr).await?;
11691169

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

0 commit comments

Comments
 (0)