We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2921570 commit df8cea8Copy full SHA for df8cea8
docs/src/concepts/tasks.md
@@ -8,7 +8,7 @@ use async_std::fs::File;
8
use async_std::task;
9
10
async fn read_file(path: &str) -> Result<String, io::Error> {
11
- let mut file = File.open(path).await?;
+ let mut file = File::open(path).await?;
12
let mut contents = String::new();
13
file.read_to_string(&mut contents).await?;
14
contents
0 commit comments