Skip to content

Commit

Permalink
Fix --edition inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Jan 2, 2023
1 parent 9f0bd81 commit 96c8aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/content/edition-3/posts/01-minimal-kernel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ cargo new kernel --bin --edition 2021
```

We name the project `kernel` here, but of course you can choose your own name.
The `--bin` flag specifies that we want to create an executable binary (in contrast to a library) and the `--edition 2018` flag specifies that we want to use the [2021 edition] of Rust for our crate.
The `--bin` flag specifies that we want to create an executable binary (in contrast to a library) and the `--edition 2021` flag specifies that we want to use the [2021 edition] of Rust for our crate.
When we run the command, cargo creates the following directory structure for us:

[2021 edition]: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
Expand Down

0 comments on commit 96c8aaf

Please sign in to comment.