Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sizumita authored and djc committed Jan 25, 2022
1 parent 6d0d7bc commit 6cfb8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/book/src/quinn/data-transfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async fn open_bidirectional_stream(connection: Connection) -> anyhow::Result<()>
```rust
async fn receive_bidirectional_stream(mut connection: NewConnection) -> anyhow::Result<()> {
while let Some(Ok((mut send, recv))) = connection.bi_streams.next().await {
// Because it is a bidirectional stream, we can both send and recieve.
// Because it is a bidirectional stream, we can both send and receive.
println!("request: {:?}", recv.read_to_end(50).await?);

send.write_all(b"response").await?;
Expand Down

0 comments on commit 6cfb8c4

Please sign in to comment.