mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-17 14:12:07 +00:00
Fix typo in 'rocket_ws' README.
This commit is contained in:
parent
58adc48965
commit
ac01e55e8b
@ -24,7 +24,7 @@ This crate provides WebSocket support for Rocket via integration with Rocket's
|
|||||||
```rust
|
```rust
|
||||||
#[get("/echo")]
|
#[get("/echo")]
|
||||||
fn echo_stream(ws: ws::WebSocket) -> ws::Stream!['static] {
|
fn echo_stream(ws: ws::WebSocket) -> ws::Stream!['static] {
|
||||||
ws::stream! { ws =>
|
ws::Stream! { ws =>
|
||||||
for await message in ws {
|
for await message in ws {
|
||||||
yield message?;
|
yield message?;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user