From 1ea3056b5ce1a1716a053fe401a7ed84bda60240 Mon Sep 17 00:00:00 2001 From: Carl Fredrik Samson Date: Tue, 4 Feb 2020 01:32:41 +0100 Subject: [PATCH] fixed tests --- src/6_future_example.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/6_future_example.md b/src/6_future_example.md index 7a617a7..9645c10 100644 --- a/src/6_future_example.md +++ b/src/6_future_example.md @@ -735,14 +735,14 @@ and wait for them one after one. Our example as it stands now returns this: -``` +```ignore Future got 1 at time: 1.00. Future got 2 at time: 3.00. ``` If these `Futures` were executed asynchronously we would expect to see: -``` +```ignore Future got 1 at time: 1.00. Future got 2 at time: 2.00. ``` @@ -772,7 +772,7 @@ fn spawn(future: F) -> Pin> { Now if we change our code in `main` to look like this instead. -```rust +```rust, ignore, noplaypen fn main() { let start = Instant::now(); let reactor = Reactor::new(); @@ -813,7 +813,7 @@ fn main() { If you add this code to our example and run it, you'll see: -``` +```ignore Future got 1 at time: 1.00. Future got 2 at time: 2.00. ```