From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 16 May 2024 08:04:49 +0000 (+0200) Subject: Update guidance in 08/04. X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=804b275b06a83fda7552c7844dafa8c770eef669;p=rust_exercises.git Update guidance in 08/04. --- 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;