Skip to content

Commit ddb36f5

Browse files
committed
Merge PR #327: Update stdout of cargo new
2 parents 95d5215 + d39163c commit ddb36f5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

+8-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ default:
55

66
```console
77
$ cargo new foo
8-
Created binary (application) `foo` project
8+
Creating binary (application) `foo` package
9+
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
910
$ cat foo/Cargo.toml
1011
[package]
1112
name = "foo"
@@ -24,7 +25,8 @@ Rust 2018 edition could be done like this:
2425

2526
```console
2627
$ cargo new --edition 2018 foo
27-
Created binary (application) `foo` project
28+
Creating binary (application) `foo` package
29+
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2830
$ cat foo/Cargo.toml
2931
[package]
3032
name = "foo"
@@ -39,12 +41,12 @@ Don't worry about accidentally using an invalid year for the edition; the
3941

4042
```console
4143
$ cargo new --edition 2019 foo
42-
error: "2019" isn't a valid value for '--edition <YEAR>'
43-
[possible values: 2015, 2018, 2021]
44+
error: invalid value '2019' for '--edition <YEAR>'
45+
[possible values: 2015, 2018, 2021, 2024]
4446

45-
Did you mean "2018"?
47+
tip: a similar value exists: '2021'
4648

47-
For more information try --help
49+
For more information, try '--help'.
4850
```
4951

5052
You can change the value of the `edition` key by simply editing the

0 commit comments

Comments
 (0)