Fix typo in 'rocket_ws' README.

This commit is contained in:
Lev Kokotov 2023-08-14 15:46:21 -07:00 committed by Sergio Benitez
parent dc9e1ac6a1
commit 9eac525e7d

View File

@ -24,7 +24,7 @@ This crate provides WebSocket support for Rocket via integration with Rocket's
```rust
#[get("/echo")]
fn echo_stream(ws: ws::WebSocket) -> ws::Stream!['static] {
ws::stream! { ws =>
ws::Stream! { ws =>
for await message in ws {
yield message?;
}