Skip to content

Commit 41f77cd

Browse files
Merge pull request #1671 from rust-lang/edition-2018-in-example-cargo-toml
Add edition = "2018" to all Cargo.toml listings
2 parents b021791 + 2257f9a commit 41f77cd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ch02-00-guessing-game-tutorial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Look at the generated *Cargo.toml* file:
3535
name = "guessing_game"
3636
version = "0.1.0"
3737
authors = ["Your Name <[email protected]>"]
38+
edition = "2018"
3839

3940
[dependencies]
4041
```

src/ch14-02-publishing-to-crates-io.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ when you created the crate, your description, and a license added, the
429429
name = "guessing_game"
430430
version = "0.1.0"
431431
authors = ["Your Name <[email protected]>"]
432+
edition = "2018"
432433
description = "A fun game where you guess what number the computer has chosen."
433434
license = "MIT OR Apache-2.0"
434435

0 commit comments

Comments
 (0)