Fix failing tests

This commit is contained in:
Stjepan Glavina 2020-05-31 17:09:53 +02:00
parent 34842de454
commit 459bf16340
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@
//! use smol::Async;
//! use std::net::TcpStream;
//!
//! # fn main() -> std::io::Result<()> { smol::run(async {
//! // A client that echoes messages back to the server.
//! let stream = Async::<TcpStream>::connect("127.0.0.1:8000").await?;
//!
@ -26,6 +27,7 @@
//!
//! // Echo data received from the reader back into the writer.
//! io::copy(reader, &mut writer).await?;
//! # Ok(()) }) }
//! ```
//!
//! Share an async I/O handle: