Skip to content

Commit 9f7b322

Browse files
committed
Adapt a use of 'latest edition'
1 parent a942963 commit 9f7b322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ However, there are times when it's useful to make backwards-incompatible changes
66

77
If Rust had suddenly introduced these new keywords, some code would have broken: `let async = 1;` would no longer work.
88

9-
Rust uses **editions** to solve this problem. When there are backwards-incompatible changes, they are pushed into the next edition. Since editions are opt-in, existing crates won't use the changes unless they explicitly migrate into the new edition. For example, the latest version of Rust doesn't treat `async` as a keyword unless edition 2018 or later is chosen.
9+
Rust uses **editions** to solve this problem. When there are backwards-incompatible changes, they are pushed into the next edition. Since editions are opt-in, existing crates won't use the changes unless they explicitly migrate into the new edition. For example, the 2015 edition of Rust doesn't treat `async` as a keyword unless edition 2018 or later is chosen.
1010

1111
Each crate chooses its edition [within its `Cargo.toml` file](https://doc.rust-lang.org/cargo/reference/manifest.html#the-edition-field). When creating a new crate with Cargo, it will automatically select the newest stable edition.
1212

0 commit comments

Comments
 (0)