mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 15:51:06 +01:00
Fix doctests
This commit is contained in:
parent
a66f20a106
commit
bcc033d95c
@ -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;
|
||||
/// }
|
||||
/// }
|
||||
|
@ -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;
|
||||
/// }
|
||||
/// _ => (),
|
||||
/// }
|
||||
|
Loading…
Reference in New Issue
Block a user