From a5f186060ccfe139a44706057ad549408b1f22a8 Mon Sep 17 00:00:00 2001 From: Anthony Dodd Date: Fri, 16 Aug 2019 21:07:28 -0500 Subject: [PATCH] Small technical correction. Absolutely awesome work here! Just reading through the book absorbing all of the awesomeness and noticed this little bit. Let me know if you would like for me to update the corrections in any way. --- docs/src/concepts/futures.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/concepts/futures.md b/docs/src/concepts/futures.md index 31069ca86..32f6aa894 100644 --- a/docs/src/concepts/futures.md +++ b/docs/src/concepts/futures.md @@ -102,7 +102,7 @@ While the `Future` trait has existed in Rust for a while, it was inconvenient to Amazingly little difference, right? All we did is label the function `async` and insert 2 special commands: `.await`. -This function sets up a deferred computation. When this function is called, it will produce a `Future` instead of immediately returning a String. (Or, more precisely, generate a type for you that implements `Future`.) +This function sets up a deferred computation. When this function is called, it will produce a `Future>` instead of immediately returning the `Result`. (Or, more precisely, generate a type for you that implements `Future>`.) ## What does `.await` do?