From 25185da76d75faab9ac918b7f0d59aa53ab3a83d Mon Sep 17 00:00:00 2001 From: Kevin Donahue Date: Tue, 24 Sep 2019 17:40:28 -0400 Subject: [PATCH] add inline example --- examples/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index a4ff5ff..c5c0d57 100644 --- a/examples/README.md +++ b/examples/README.md @@ -18,6 +18,14 @@ Spawns a task that says hello. Counts the number of lines in a file given as an argument. +```shell +cargo run --example line-count -- ./Cargo.toml +``` + +- [List Dir][list-dir] + +Lists files in a directory given as an argument. + [hello-world]: https://github.com/async-rs/async-std/blob/master/examples/hello-world.rs [line-count]: https://github.com/async-rs/async-std/blob/master/examples/line-count.rs - +[list-dir]: https://github.com/async-rs/async-std/blob/master/examples/list-dir.rs