Skip to content

Commit 5981033

Browse files
committed
make readme example run
1 parent f00a1bd commit 5981033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ cargo add TBD
2424

2525
Then start reading ADIF from any object that implements the AsyncRead trait:
2626

27-
```rust,no_run
27+
```rust
2828
use adif::RecordStream;
2929
use futures::StreamExt;
3030
use tokio::{fs::File, io::BufReader};
3131

3232
#[tokio::main(flavor = "current_thread")]
3333
async fn main() -> Result<(), Box<dyn std::error::Error>> {
34-
let file = File::open("foo.adif").await?;
34+
let file = File::open("examples/sample.adif").await?;
3535
let reader = BufReader::new(file);
3636
let mut stream = RecordStream::new(reader, true);
3737
while let Some(result) = stream.next().await {

0 commit comments

Comments
 (0)