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 58adc48965
commit ac01e55e8b
1 changed files with 1 additions and 1 deletions

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?;
}