summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSylwek <hausupspam@gmail.com>2018-06-13 18:02:34 +0200
committerCarl Lerche <me@carllerche.com>2018-06-13 09:02:34 -0700
commit4ebaf18c2729ebc9e110e137682ecc9461c3659d (patch)
tree11fb6b1335538209df685dcc5d1d097731c3ce3d /examples
parentab07733d665a8e086c91cc7cb993ae2afcca4be2 (diff)
Typo (#415)
Diffstat (limited to 'examples')
-rw-r--r--examples/chat.rs2
1 files changed, 1 insertions, 1 deletions
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