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 6d410f6 commit c853991Copy full SHA for c853991
tokio/src/io/util/mem.rs
@@ -197,8 +197,8 @@ impl Drop for DuplexStream {
197
/// ```
198
/// # async fn ex() -> std::io::Result<()> {
199
/// # use tokio::io::{AsyncReadExt, AsyncWriteExt};
200
-/// let (writer, reader) = tokio::io::simplex(64);
201
-/// let mut simplex_stream = writer.unsplit(reader);
+/// let (reader, writer) = tokio::io::simplex(64);
+/// let mut simplex_stream = reader.unsplit(writer);
202
/// simplex_stream.write_all(b"hello").await?;
203
///
204
/// let mut buf = [0u8; 5];
0 commit comments