Skip to content

Commit 2562e71

Browse files
authored
Move the --prepare-for explicit note to the last section
1 parent 9906a6d commit 2562e71

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/editions/transitioning.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ build`. If it does not, this is a bug! Please [file an issue][issue].
9191

9292
[issue]: https://github.com/rust-lang/rust/issues/new
9393

94-
Now that you've switched to the new edition, you should no longer pass the
95-
`--prepare-for 2018` flag to `cargo fix` because you are now already on
96-
the next edition!
97-
9894
## Writing idiomatic code in a new edition
9995

10096
Your crate has now entered the 2018 edition of Rust, congrats! Recall though
@@ -109,7 +105,9 @@ these lints add this to your `lib.rs` or `main.rs`:
109105
#![warn(rust_2018_idioms)]
110106
```
111107

112-
and then execute:
108+
Note that since you already switched to the new edition in the previous section,
109+
you should no longer pass the `--prepare-for 2018` flag to `cargo fix` because
110+
you are now already on the next edition! Execute:
113111

114112
```shell
115113
$ cargo +nightly fix

0 commit comments

Comments
 (0)