From 9744403a6b13d2e133d0eb8f5859ab6543e4e357 Mon Sep 17 00:00:00 2001 From: marin Date: Fri, 10 Apr 2020 23:46:59 +0200 Subject: [PATCH] fix typo in code example --- src/6_future_example.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/6_future_example.md b/src/6_future_example.md index 2599c2f..e2cfb9f 100644 --- a/src/6_future_example.md +++ b/src/6_future_example.md @@ -71,7 +71,7 @@ fn block_on(mut future: F) -> F::Output { // that can happen for no good reason). let val = loop { - match Future::poll(pinned, &mut cx) { + match Future::poll(future, &mut cx) { // when the Future is ready we're finished Poll::Ready(val) => break val, @@ -710,4 +710,4 @@ Don't forget the exercises in the last chapter 😊. [playground_example]:https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ca43dba55c6e3838c5494de45875677f [spurious_wakeup]: https://cfsamson.github.io/book-exploring-async-basics/9_3_http_module.html#bonus-section [condvar]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html -[crossbeam_parker]: https://docs.rs/crossbeam/0.7.3/crossbeam/sync/struct.Parker.html \ No newline at end of file +[crossbeam_parker]: https://docs.rs/crossbeam/0.7.3/crossbeam/sync/struct.Parker.html