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 df8cea8

Browse files
Book: Fix typo in tasks example
1 parent 2921570 commit df8cea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/src/concepts/tasks.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use async_std::fs::File;
88
use async_std::task;
99

1010
async fn read_file(path: &str) -> Result<String, io::Error> {
11-
let mut file = File.open(path).await?;
11+
let mut file = File::open(path).await?;
1212
let mut contents = String::new();
1313
file.read_to_string(&mut contents).await?;
1414
contents

0 commit comments

Comments
(0)

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