Skip to content

Commit 8b518af

Browse files
dmitristaiki-e
authored andcommitted
update cargo new command with --lib
The current `cargo new timer_future` command generates `src/main.rs`, not `src/lib.rs` mentioned later.
1 parent 66e6d20 commit 8b518af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/02_execution/03_wakeups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For the sake of the example, we'll just spin up a new thread when the timer
2323
is created, sleep for the required time, and then signal the timer future
2424
when the time window has elapsed.
2525

26-
First, start a new project with `cargo new timer_future` and add the imports
26+
First, start a new project with `cargo new --lib timer_future` and add the imports
2727
we'll need to get started to `src/lib.rs`:
2828

2929
```rust

0 commit comments

Comments
 (0)