]> git.proxmox.com Git - proxmox.git/commitdiff
websocket: fix doc test
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 24 Aug 2021 13:19:47 +0000 (15:19 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 24 Aug 2021 13:19:47 +0000 (15:19 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-http/src/websocket/mod.rs

index 4830db6a123f734a52a2ed2d2f818453dd8bca21..1fe10ae849fed9bc4bfd66422d62f0cefba3d39f 100644 (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(())
 /// }