mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-02 06:42:03 +00:00
Fix typo in 'rocket_ws' README.
This commit is contained in:
parent
dc9e1ac6a1
commit
9eac525e7d
@ -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?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user