We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9f83e commit 60ce74dCopy full SHA for 60ce74d
futures-util/src/compat/compat01as03.rs
@@ -354,7 +354,7 @@ mod io {
354
///
355
/// let input = b"Hello World!";
356
/// let reader: impl tokio_io::AsyncRead = std::io::Cursor::new(input);
357
- /// let mut reader: impl futures::io::AsyncRead = reader.compat();
+ /// let mut reader: impl futures::io::AsyncRead + Unpin = reader.compat();
358
359
/// let mut output = Vec::with_capacity(12);
360
/// await!(reader.read_to_end(&mut output)).unwrap();
0 commit comments