Skip to content

Commit 5f4cd09

Browse files
committed
Fix rust_2018_idioms in the snippet
1 parent f50904c commit 5f4cd09

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
@@ -43,7 +43,7 @@ add this feature to your crate root:
4343
#![feature(rust_2018_preview)]
4444

4545
// Opt in to warnings about new 2018 idioms
46-
#![feature(rust_2018_idioms)]
46+
#![warn(rust_2018_idioms)]
4747
```
4848

4949
and opt in to the new edition in your `Cargo.toml`:

0 commit comments

Comments
 (0)