Skip to content

Commit 5fbeb52

Browse files
authored
Merge pull request #73 from U007D/patch-1
Clarify async fn return type
2 parents f57e314 + 96b821b commit 5fbeb52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/concepts/futures.md

Lines changed: 1 addition & 1 deletion
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=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>>`.)
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 a `Result<String, io::Error>`. (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)