From b5594ae2a5e16b1848619a0edb957ecd82039e16 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 21 Jun 2018 14:11:00 +0600 Subject: [PATCH] Fix doc api example --- src/ws/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ws/mod.rs b/src/ws/mod.rs index c68cf300..558ecb51 100644 --- a/src/ws/mod.rs +++ b/src/ws/mod.rs @@ -25,12 +25,12 @@ //! //! // Handler for ws::Message messages //! impl StreamHandler for Ws { -//! fn handle(&mut self, msg: Result, ws::ProtocolError>, ctx: &mut Self::Context) { +//! fn handle(&mut self, msg: ws::Message, ctx: &mut Self::Context) { //! match msg { -//! Ok(Some(ws::Message::Ping(msg))) => ctx.pong(&msg), -//! Ok(Some(ws::Message::Text(text))) => ctx.text(text), -//! Ok(Some(ws::Message::Binary(bin))) => ctx.binary(bin), -//! _ => ctx.stop(), +//! ws::Message::Ping(msg) => ctx.pong(&msg), +//! ws::Message::Text(text) => ctx.text(text), +//! ws::Message::Binary(bin) => ctx.binary(bin), +//! _ => (), //! } //! } //! }