summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cameron <cameron.evan@gmail.com>2020-10-17 06:13:23 -0400
committerGitHub <noreply@github.com>2020-10-17 12:13:23 +0200
commite88e64bcc07f4a632014815a5fec3e67d97a8f31 (patch)
treea4fd1b2697bcb7addf1881074390cec32d9679e6
parent3cc6ce7a995b0d34b00ca1e5798c2c523cc63e7a (diff)
docs: fix typos on UdpSocket (#2979)
-rw-r--r--tokio/src/net/udp/socket.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/tokio/src/net/udp/socket.rs b/tokio/src/net/udp/socket.rs
index 77e5dd43..d13e92bc 100644
--- a/tokio/src/net/udp/socket.rs
+++ b/tokio/src/net/udp/socket.rs
@@ -11,10 +11,11 @@ cfg_net! {
///
/// UDP is "connectionless", unlike TCP. Meaning, regardless of what address you've bound to, a `UdpSocket`
/// is free to communicate with many different remotes. In tokio there are basically two main ways to use `UdpSocket`:
- /// - one to many: [`bind`](`UdpSocket::bind`) and use [`send_to`](`UdpSocket::send_to`)
- /// and `[`recv_from`](`UdpSocket::recv_from`) to communicate with many different addresses
- /// - one to one: [`connect`](`UdpSocket::connect`) and associate with a single address, using [`send`](`UdpSocket::send`)
- /// and `[`recv`](`UdpSocket::recv`) to communicate only with that remote address
+ ///
+ /// * one to many: [`bind`](`UdpSocket::bind`) and use [`send_to`](`UdpSocket::send_to`)
+ /// and [`recv_from`](`UdpSocket::recv_from`) to communicate with many different addresses
+ /// * one to one: [`connect`](`UdpSocket::connect`) and associate with a single address, using [`send`](`UdpSocket::send`)
+ /// and [`recv`](`UdpSocket::recv`) to communicate only with that remote address
///
/// `UdpSocket` can also be used concurrently to `send_to` and `recv_from` in different tasks,
/// all that's required is that you `Arc<UdpSocket>` and clone a reference for each task.