From 9fc06c764ae01d463af927e2c4fdb604dd5d921e Mon Sep 17 00:00:00 2001 From: Noah Kennedy Date: Fri, 2 Sep 2022 14:38:52 -0500 Subject: [PATCH] fix comment --- tokio/src/io/poll_evented.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/io/poll_evented.rs b/tokio/src/io/poll_evented.rs index cc5db039d58..6e56f126ebe 100644 --- a/tokio/src/io/poll_evented.rs +++ b/tokio/src/io/poll_evented.rs @@ -194,7 +194,7 @@ feature! { match self.io.as_ref().unwrap().write(buf) { Ok(n) => { - // if we read a partially full buffer, this is sufficient on unix to show + // if we write only part of our buffer, this is sufficient on unix to show // that the socket buffer has been drained if n > 0 && (!cfg!(windows) && n < buf.len()) { self.registration.clear_readiness(evt);