diff options
author | Zhang Jingqiang <zh_jq@outlook.com> | 2020-10-22 14:59:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 08:59:47 +0200 |
commit | adf822f5cc11acdeeae3cf119469a19c524e82b4 (patch) | |
tree | 694213dcfec17da08f5710dbd72a9bc022cb6465 | |
parent | d14cbf91162d1ae2976a67a43e1f06cda1c21e29 (diff) |
net: fix typo (#3023)
-rw-r--r-- | tokio/src/net/tcp/listener.rs | 2 | ||||
-rw-r--r-- | tokio/src/net/unix/listener.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/net/tcp/listener.rs b/tokio/src/net/tcp/listener.rs index 3f9bca03..ab3bc7de 100644 --- a/tokio/src/net/tcp/listener.rs +++ b/tokio/src/net/tcp/listener.rs @@ -177,7 +177,7 @@ impl TcpListener { /// current task will be notified by a waker. /// /// When ready, the most recent task that called `poll_accept` is notified. - /// The caller is responsble to ensure that `poll_accept` is called from a + /// The caller is responsible to ensure that `poll_accept` is called from a /// single task. Failing to do this could result in tasks hanging. pub fn poll_accept(&self, cx: &mut Context<'_>) -> Poll<io::Result<(TcpStream, SocketAddr)>> { loop { diff --git a/tokio/src/net/unix/listener.rs b/tokio/src/net/unix/listener.rs index b2726456..4e0d9ede 100644 --- a/tokio/src/net/unix/listener.rs +++ b/tokio/src/net/unix/listener.rs @@ -115,7 +115,7 @@ impl UnixListener { /// the current task will be notified by a waker. /// /// When ready, the most recent task that called `poll_accept` is notified. - /// The caller is responsble to ensure that `poll_accept` is called from a + /// The caller is responsible to ensure that `poll_accept` is called from a /// single task. Failing to do this could result in tasks hanging. pub fn poll_accept(&self, cx: &mut Context<'_>) -> Poll<io::Result<(UnixStream, SocketAddr)>> { loop { |