forked from mirror/async-std
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 {
|
||||
//! 1 + 2
|
||||
//! });
|
||||
//! assert_eq!(handle.await, 3);
|
||||
//! #
|
||||
//! # }) }
|
||||
//! ```
|
||||
|
|
Loading…
Reference in a new issue