Skip to content

Commit 366546b

Browse files
committed
Visibly import in tasks example
Fixes #97
1 parent b768a7b commit 366546b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/src/concepts/tasks.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ In `async-std`, the [`tasks`][tasks] module is responsible for this. The simples
66

77
```rust,edition2018
88
# extern crate async_std;
9-
# use async_std::{fs::File, io::Read, task};
10-
# use std::io;
11-
#
9+
use async_std::{io, task, fs::File, io::Read};
10+
1211
async fn read_file(path: &str) -> Result<String, io::Error> {
1312
let mut file = File::open(path).await?;
1413
let mut contents = String::new();

0 commit comments

Comments
 (0)