Skip to content

Commit df8cea8

Browse files
authored
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)