Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /