mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
comment rewording
This commit is contained in:
@@ -35,7 +35,7 @@ impl Future for Server {
|
|||||||
loop {
|
loop {
|
||||||
// First we check to see if there's a message we need to echo back.
|
// First we check to see if there's a message we need to echo back.
|
||||||
// If so then we try to send it back to the original source, waiting
|
// If so then we try to send it back to the original source, waiting
|
||||||
// until we're writable and able to do so.
|
// until it's writable and we're able to do so.
|
||||||
if let Some((size, peer)) = self.to_send {
|
if let Some((size, peer)) = self.to_send {
|
||||||
let amt = try_nb!(self.socket.send_to(&self.buf[..size], &peer));
|
let amt = try_nb!(self.socket.send_to(&self.buf[..size], &peer));
|
||||||
println!("Echoed {}/{} bytes to {}", amt, size, peer);
|
println!("Echoed {}/{} bytes to {}", amt, size, peer);
|
||||||
|
|||||||
Reference in New Issue
Block a user