Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
asonix committed Nov 5, 2024
1 parent a66f20a commit bcc033d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actix-ws/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/// }
/// }
Expand Down
4 changes: 2 additions & 2 deletions actix-ws/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// }
/// # }
Expand All @@ -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;
/// }
/// _ => (),
/// }
Expand Down

0 comments on commit bcc033d

Please sign in to comment.