Merge pull request #57 from killercup/patch-1

Book: Fix typo in tasks example
pull/59/head
James Munns 5 years ago committed by GitHub
commit 85c07db8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,7 +8,7 @@ use async_std::fs::File;
use async_std::task;
async fn read_file(path: &str) -> Result<String, io::Error> {
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

Loading…
Cancel
Save