diff options
author | Oleg Nosov <olegnosov1@gmail.com> | 2020-01-24 20:31:13 +0300 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2020-01-24 09:31:13 -0800 |
commit | f9ddb93604a830d106475bd4c4cae436fafcc0da (patch) | |
tree | 6f200680e68b290794ef0512dcb031ef6d81c5ea /tokio/src/net/udp/socket.rs | |
parent | a70f7203a46d471345128832987017612d8e4585 (diff) |
docs: use third form in API docs (#2027)
Diffstat (limited to 'tokio/src/net/udp/socket.rs')
-rw-r--r-- | tokio/src/net/udp/socket.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/src/net/udp/socket.rs b/tokio/src/net/udp/socket.rs index 909ef760..604da98b 100644 --- a/tokio/src/net/udp/socket.rs +++ b/tokio/src/net/udp/socket.rs @@ -33,7 +33,7 @@ impl UdpSocket { Err(last_err.unwrap_or_else(|| { io::Error::new( io::ErrorKind::InvalidInput, - "could not resolve to any addresses", + "could not resolve to any address", ) })) } @@ -71,7 +71,7 @@ impl UdpSocket { Ok(UdpSocket { io }) } - /// Split the `UdpSocket` into a receive half and a send half. The two parts + /// Splits the `UdpSocket` into a receive half and a send half. The two parts /// can be used to receive and send datagrams concurrently, even from two /// different tasks. /// @@ -103,7 +103,7 @@ impl UdpSocket { Err(last_err.unwrap_or_else(|| { io::Error::new( io::ErrorKind::InvalidInput, - "could not resolve to any addresses", + "could not resolve to any address", ) })) } |