websocket: fix doc test

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-08-24 15:19:47 +02:00
parent 917ce00dd6
commit 8c125364e4

View File

@ -236,7 +236,7 @@ pub fn create_frame(
/// # use std::io;
/// # use tokio::io::{AsyncWrite, AsyncWriteExt};
/// async fn code<I: AsyncWrite + Unpin>(writer: I) -> io::Result<()> {
/// let mut ws = WebSocketWriter::new(None, false, writer);
/// let mut ws = WebSocketWriter::new(None, writer);
/// ws.write(&[1u8,2u8,3u8]).await?;
/// Ok(())
/// }