Skip to content

Commit 9da3401

Browse files
committed
Update creating chapter for 2021.
1 parent 3710b0c commit 9da3401

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/editions/creating-a-new-project.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ configuration for the latest edition:
66
```console
77
> cargo +nightly new foo
88
Created binary (application) `foo` project
9-
> cat .\foo\Cargo.toml
9+
> cat foo/Cargo.toml
1010
[package]
1111
name = "foo"
1212
version = "0.1.0"
13-
authors = ["your name <you@example.com>"]
14-
edition = "2018"
13+
edition = "2021"
1514

1615
[dependencies]
1716
```
1817

19-
That `edition = "2018"` setting will configure your package to use Rust 2018.
18+
That `edition = "2021"` setting will configure your package to use Rust 2021.
2019
No more configuration needed!
2120

2221
If you'd prefer to use an older edition, you can change the value in that
@@ -26,7 +25,6 @@ key, for example:
2625
[package]
2726
name = "foo"
2827
version = "0.1.0"
29-
authors = ["your name <you@example.com>"]
3028
edition = "2015"
3129

3230
[dependencies]

0 commit comments

Comments
 (0)