From 797a6b2d905ebfa3958966454caf9f48952f65b1 Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Sun, 22 Sep 2019 12:16:35 +0200 Subject: [PATCH] Add a missing assert in a doc example --- src/task/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/task/mod.rs b/src/task/mod.rs index 1844ccab..7424502f 100644 --- a/src/task/mod.rs +++ b/src/task/mod.rs @@ -17,6 +17,7 @@ //! let handle = task::spawn(async { //! 1 + 2 //! }); +//! assert_eq!(handle.await, 3); //! # //! # }) } //! ```