1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01:00

Fix doctests

This commit is contained in:
asonix 2024-11-04 18:17:20 -06:00
parent a66f20a106
commit bcc033d95c
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ pub use self::{
/// while let Some(Ok(msg)) = msg_stream.next().await {
/// match msg {
/// Message::Ping(bytes) => {
/// if session.pong(&bytes).await.is_err() {
/// if session.pong(bytes).await.is_err() {
/// return;
/// }
/// }

View File

@ -98,7 +98,7 @@ impl Session {
/// ```no_run
/// # use actix_ws::Session;
/// # async fn test(mut session: Session) {
/// if session.ping(b"").await.is_err() {
/// if session.ping(&b""[..]).await.is_err() {
/// // session is closed
/// }
/// # }
@ -122,7 +122,7 @@ impl Session {
/// # async fn test(mut session: Session, msg: Message) {
/// match msg {
/// Message::Ping(bytes) => {
/// let _ = session.pong(&bytes).await;
/// let _ = session.pong(bytes).await;
/// }
/// _ => (),
/// }