Skip to content

Commit cb0e8c3

Browse files
committed
Auto merge of #9202 - gauntface:patch-1, r=ehuss
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
2 parents a3391a4 + d1c28a5 commit cb0e8c3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/doc/src/reference/manifest.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,20 @@ brackets at the end of each author.
119119
<a id="the-edition-field-optional"></a>
120120
#### The `edition` field
121121

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

128-
If the `edition` key is not set to a specific [Rust Edition] in your
129-
`Cargo.toml`, Cargo will default to 2015.
130-
131128
```toml
132129
[package]
133130
# ...
134131
edition = '2018'
135132
```
136133

134+
If the `edition` key is not set in your `Cargo.toml`, Cargo will default to 2015.
135+
137136
#### The `description` field
138137

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

0 commit comments

Comments
 (0)