From adf822f5cc11acdeeae3cf119469a19c524e82b4 Mon Sep 17 00:00:00 2001 From: Zhang Jingqiang Date: Thu, 22 Oct 2020 14:59:47 +0800 Subject: net: fix typo (#3023) --- tokio/src/net/tcp/listener.rs | 2 +- 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> { 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> { loop { -- cgit v1.2.3