Skip to content

Commit 85c07db

Browse files
author
James Munns
authored
Merge pull request #57 from killercup/patch-1
Book: Fix typo in tasks example
2 parents 2921570 + df8cea8 commit 85c07db

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)