mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +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 {
|
/// while let Some(Ok(msg)) = msg_stream.next().await {
|
||||||
/// match msg {
|
/// match msg {
|
||||||
/// Message::Ping(bytes) => {
|
/// Message::Ping(bytes) => {
|
||||||
/// if session.pong(&bytes).await.is_err() {
|
/// if session.pong(bytes).await.is_err() {
|
||||||
/// return;
|
/// return;
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
|
@ -98,7 +98,7 @@ impl Session {
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # use actix_ws::Session;
|
/// # use actix_ws::Session;
|
||||||
/// # async fn test(mut session: Session) {
|
/// # async fn test(mut session: Session) {
|
||||||
/// if session.ping(b"").await.is_err() {
|
/// if session.ping(&b""[..]).await.is_err() {
|
||||||
/// // session is closed
|
/// // session is closed
|
||||||
/// }
|
/// }
|
||||||
/// # }
|
/// # }
|
||||||
@ -122,7 +122,7 @@ impl Session {
|
|||||||
/// # async fn test(mut session: Session, msg: Message) {
|
/// # async fn test(mut session: Session, msg: Message) {
|
||||||
/// match msg {
|
/// match msg {
|
||||||
/// Message::Ping(bytes) => {
|
/// Message::Ping(bytes) => {
|
||||||
/// let _ = session.pong(&bytes).await;
|
/// let _ = session.pong(bytes).await;
|
||||||
/// }
|
/// }
|
||||||
/// _ => (),
|
/// _ => (),
|
||||||
/// }
|
/// }
|
||||||
|
Loading…
Reference in New Issue
Block a user