Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah-Kennedy committed Sep 2, 2022
1 parent bbb96fc commit 9fc06c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/io/poll_evented.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fc06c7

Please sign in to comment.