forked from proxmox-mirrors/proxmox
websocket: fix doc test
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
917ce00dd6
commit
8c125364e4
@ -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(())
|
||||
/// }
|
||||
|
Loading…
Reference in New Issue
Block a user