mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
Add a missing assert in a doc example
This commit is contained in:
parent
bfab20da03
commit
797a6b2d90
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
//! let handle = task::spawn(async {
|
//! let handle = task::spawn(async {
|
||||||
//! 1 + 2
|
//! 1 + 2
|
||||||
//! });
|
//! });
|
||||||
|
//! assert_eq!(handle.await, 3);
|
||||||
//! #
|
//! #
|
||||||
//! # }) }
|
//! # }) }
|
||||||
//! ```
|
//! ```
|
||||||
|
|
Loading…
Reference in a new issue