Skip to content

Commit f57e314

Browse files
thedoddStjepan Glavina
authored and
Stjepan Glavina
committed
Small technical correction. (#64)
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.
1 parent fd0b4d4 commit f57e314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/src/concepts/futures.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ While the `Future` trait has existed in Rust for a while, it was inconvenient to
102102

103103
Amazingly little difference, right? All we did is label the function `async` and insert 2 special commands: `.await`.
104104

105-
This function sets up a deferred computation. When this function is called, it will produce a `Future<Output=String>` instead of immediately returning a String. (Or, more precisely, generate a type for you that implements `Future<Output=String>`.)
105+
This function sets up a deferred computation. When this function is called, it will produce a `Future<Output=Result<String, io::Error>>` instead of immediately returning the `Result`. (Or, more precisely, generate a type for you that implements `Future<Output=Result<String, io::Error>>`.)
106106

107107
## What does `.await` do?
108108

0 commit comments

Comments
 (0)