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 std::io;
|
||||||
/// # use tokio::io::{AsyncWrite, AsyncWriteExt};
|
/// # use tokio::io::{AsyncWrite, AsyncWriteExt};
|
||||||
/// async fn code<I: AsyncWrite + Unpin>(writer: I) -> io::Result<()> {
|
/// 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?;
|
/// ws.write(&[1u8,2u8,3u8]).await?;
|
||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// }
|
/// }
|
||||||
|
Loading…
Reference in New Issue
Block a user