From df8cea8ab687408d1baa7b6dacdef4e336c86de4 Mon Sep 17 00:00:00 2001 From: Pascal Hertleif Date: Fri, 16 Aug 2019 23:20:15 +0200 Subject: [PATCH] Book: Fix typo in tasks example --- docs/src/concepts/tasks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/concepts/tasks.md b/docs/src/concepts/tasks.md index 743d578c..24931867 100644 --- a/docs/src/concepts/tasks.md +++ b/docs/src/concepts/tasks.md @@ -8,7 +8,7 @@ use async_std::fs::File; use async_std::task; async fn read_file(path: &str) -> Result { - let mut file = File.open(path).await?; + let mut file = File::open(path).await?; let mut contents = String::new(); file.read_to_string(&mut contents).await?; contents