From 804b275b06a83fda7552c7844dafa8c770eef669 Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 16 May 2024 10:04:49 +0200 Subject: [PATCH] Update guidance in 08/04. --- Cargo.lock | 7 +++++++ exercises/08_futures/04_future/src/lib.rs | 1 + 2 files changed, 8 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 19f5a24..e725be7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -453,6 +453,13 @@ version = "0.1.0" name = "outro_04" version = "0.1.0" +[[package]] +name = "outro_08" +version = "0.1.0" +dependencies = [ + "tokio", +] + [[package]] name = "overflow" version = "0.1.0" diff --git a/exercises/08_futures/04_future/src/lib.rs b/exercises/08_futures/04_future/src/lib.rs index 9330b72..8dc1c96 100644 --- a/exercises/08_futures/04_future/src/lib.rs +++ b/exercises/08_futures/04_future/src/lib.rs @@ -1,6 +1,7 @@ //! TODO: get the code to compile by **re-ordering** the statements //! in the `example` function. You're not allowed to change the //! `spawner` function nor what each line does in `example`. +//! You can wrap existing statements in blocks `{}` if needed. use std::rc::Rc; use tokio::task::yield_now; -- 2.45.2