Skip to content

Commit

Permalink
Update glossary.md (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
xring authored Oct 31, 2023
1 parent 089721c commit dcd2c8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/tokio/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ can also refer to creating new thread with [`std::thread::spawn`].
An async block is an easy way to create a future that runs some code. For
example:

```
```rust
let world = async {
println!(" world!");
};
Expand Down Expand Up @@ -161,7 +161,7 @@ code][api-blocking] section from the Tokio API reference.
A [`Stream`] is an asynchronous version of an [`Iterator`], and provides a
stream of values. It is commonly used together with a `while let` loop like this:

```
```rust
use tokio_stream::StreamExt; // for next()

# async fn dox() {
Expand Down

0 comments on commit dcd2c8a

Please sign in to comment.