mirror of https://github.com/rwf2/Rocket.git
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