From 12cfcb03c1d481db30c2de136f1aa72dc11dd2c5 Mon Sep 17 00:00:00 2001
From: Carl Fredrik Samson
Compare that with a similar example using async blocks:
-let mut fut = async || {
+let mut fut = async || {
let to_borrow = String::from("Hello");
let borrowed = &to_borrow;
SomeResource::some_task().await;
diff --git a/book/print.html b/book/print.html
index bff45d5..e15a5ca 100644
--- a/book/print.html
+++ b/book/print.html
@@ -1553,7 +1553,7 @@ the syntax used in generators:
};
Compare that with a similar example using async blocks:
-let mut fut = async || {
+let mut fut = async || {
let to_borrow = String::from("Hello");
let borrowed = &to_borrow;
SomeResource::some_task().await;
diff --git a/src/3_generators_pin.md b/src/3_generators_pin.md
index b3d1ee3..9dda67e 100644
--- a/src/3_generators_pin.md
+++ b/src/3_generators_pin.md
@@ -562,7 +562,7 @@ let mut gen = move || {
Compare that with a similar example using async blocks:
-```
+```rust, ignore
let mut fut = async || {
let to_borrow = String::from("Hello");
let borrowed = &to_borrow;