diff --git a/content/tokio/tutorial/spawning.md b/content/tokio/tutorial/spawning.md index 4b282870..ba52138e 100644 --- a/content/tokio/tutorial/spawning.md +++ b/content/tokio/tutorial/spawning.md @@ -12,6 +12,14 @@ $ mkdir -p examples $ mv src/main.rs examples/hello-redis.rs ``` +Then add following section to `Cargo.toml` + +```toml +[[example]] +name = "hello-redis" +path = "examples/hello-redis.rs" +``` + Then create a new, empty `src/main.rs` and continue. # Accepting sockets