diff --git a/src/lib.rs b/src/lib.rs index 998b6537..4fb0c31d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,9 +44,10 @@ //! let mut buf = vec![]; //! //! io::timeout(Duration::from_secs(5), async { -//! stream.read_to_end(&mut buf).await? +//! stream.read_to_end(&mut buf).await?; //! Ok(buf) //! }) +//! .await //! } //! //! fn main() {