Skip to content

Commit

Permalink
Auto merge of #9202 - gauntface:patch-1, r=ehuss
Browse files Browse the repository at this point in the history
Correct default cargo new edition

I think this is a small typo in the docs but feel free to close this PR if I'm mistaken
  • Loading branch information
bors committed Mar 1, 2021
2 parents a3391a4 + d1c28a5 commit cb0e8c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/doc/src/reference/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,20 @@ brackets at the end of each author.
<a id="the-edition-field-optional"></a>
#### The `edition` field

The `edition` key is an optional key that affects which edition your package
The `edition` key is an optional key that affects which [Rust Edition] your package
is compiled with. [`cargo new`] will generate a package with the `edition` key
set to the latest edition. Setting the `edition` key in
`[package]` will affect all targets/crates in the package, including test
suites, benchmarks, binaries, examples, etc.

If the `edition` key is not set to a specific [Rust Edition] in your
`Cargo.toml`, Cargo will default to 2015.

```toml
[package]
# ...
edition = '2018'
```

If the `edition` key is not set in your `Cargo.toml`, Cargo will default to 2015.

#### The `description` field

The description is a short blurb about the package. [crates.io] will display
Expand Down

0 comments on commit cb0e8c3

Please sign in to comment.