From db96f670b7f2cd9f9eeff07e3ea885b9732fb701 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Tue, 4 Apr 2023 15:37:22 -0700 Subject: [PATCH] Fix contrib 'ws' README formatting. --- contrib/ws/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/contrib/ws/README.md b/contrib/ws/README.md index b77e9822..bd889e89 100644 --- a/contrib/ws/README.md +++ b/contrib/ws/README.md @@ -21,15 +21,15 @@ This crate provides WebSocket support for Rocket via integration with Rocket's 2. Use it! - ```rust - #[get("/echo")] - fn echo_stream(ws: ws::WebSocket) -> ws::Stream!['static] { - ws::stream! { ws => - for await message in ws { - yield message?; - } - } - } - ``` + ```rust + #[get("/echo")] + fn echo_stream(ws: ws::WebSocket) -> ws::Stream!['static] { + ws::stream! { ws => + for await message in ws { + yield message?; + } + } + } + ``` See the [crate docs] for full details.