fixed failing test

This commit is contained in:
Carl Fredrik Samson
2020-04-06 01:52:41 +02:00
parent 15d7c726f8
commit 12cfcb03c1
3 changed files with 3 additions and 3 deletions

View File

@@ -656,7 +656,7 @@ the syntax used in generators:</p>
};
</code></pre>
<p>Compare that with a similar example using async blocks:</p>
<pre><code>let mut fut = async || {
<pre><code class="language-rust ignore">let mut fut = async || {
let to_borrow = String::from(&quot;Hello&quot;);
let borrowed = &amp;to_borrow;
SomeResource::some_task().await;

View File

@@ -1553,7 +1553,7 @@ the syntax used in generators:</p>
};
</code></pre>
<p>Compare that with a similar example using async blocks:</p>
<pre><code>let mut fut = async || {
<pre><code class="language-rust ignore">let mut fut = async || {
let to_borrow = String::from(&quot;Hello&quot;);
let borrowed = &amp;to_borrow;
SomeResource::some_task().await;

View File

@@ -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;