From a802fd83aa3e78a6a3b746ec5c93abb3d916a191 Mon Sep 17 00:00:00 2001 From: Matous Hybl Date: Mon, 6 Dec 2021 14:59:15 +0100 Subject: [PATCH] Fix embassy-net documentation of running examples. --- embassy-net/README.md | 5 +++-- examples/std/Cargo.toml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/embassy-net/README.md b/embassy-net/README.md index 64f65670..9657e358 100644 --- a/embassy-net/README.md +++ b/embassy-net/README.md @@ -17,10 +17,11 @@ sudo ip -6 route add fe80::/64 dev tap0 sudo ip -6 route add fdaa::/64 dev tap0 ``` -Then, run it +Then run the example located in the `examples` folder: ```sh -cargo run --bin embassy-net-examples +cd $EMBASSY_ROOT/examples/std/ +cargo run --bin net ``` ## License diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index 9a9961a3..450911fa 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml @@ -15,5 +15,5 @@ log = "0.4.14" nix = "0.22.1" libc = "0.2.101" clap = { version = "3.0.0-beta.5", features = ["derive"] } -rand_core = { version = "0.6.3", features = ["std"] } -heapless = { version = "0.7.5", default-features = false } +rand_core = { version = "0.6.3", features = ["std"] } +heapless = { version = "0.7.5", default-features = false }