From 4ebaf18c2729ebc9e110e137682ecc9461c3659d Mon Sep 17 00:00:00 2001 From: Sylwek Date: Wed, 13 Jun 2018 18:02:34 +0200 Subject: Typo (#415) --- examples/chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/chat.rs b/examples/chat.rs index 8c347f40..bdc742c9 100644 --- a/examples/chat.rs +++ b/examples/chat.rs @@ -290,7 +290,7 @@ impl Lines { fn poll_flush(&mut self) -> Poll<(), io::Error> { // As long as there is buffered data to write, try to write it. while !self.wr.is_empty() { - // Try to read some bytes from the socket + // Try to write some bytes to the socket let n = try_ready!(self.socket.poll_write(&self.wr)); // As long as the wr is not empty, a successful write should -- cgit v1.2.3