Skip to content

Commit 58c46b1

Browse files
committed
docs(ref): Move target-edition to last
1 parent 21f4080 commit 58c46b1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/doc/src/reference/cargo-targets.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,6 @@ to run tests and benchmarks.
268268
Tests have the [`cfg(test)` conditional expression][cfg-test] enabled whether
269269
or not the harness is enabled.
270270

271-
### The `edition` field
272-
273-
The `edition` field defines the [Rust edition] the target will use. If not
274-
specified, it defaults to the [`edition` field][package-edition] for the
275-
`[package]`. This field should usually not be set, and is only intended for
276-
advanced scenarios such as incrementally transitioning a large package to a
277-
new edition.
278-
279271
### The `crate-type` field
280272

281273
The `crate-type` field defines the [crate types] that will be generated by the
@@ -313,6 +305,13 @@ name = "my-pg-tool"
313305
required-features = ["postgres", "tools"]
314306
```
315307

308+
### The `edition` field
309+
310+
The `edition` field defines the [Rust edition] the target will use. If not
311+
specified, it defaults to the [`edition` field][package-edition] for the
312+
`[package]`. This field should usually not be set, and is only intended for
313+
advanced scenarios such as incrementally transitioning a large package to a
314+
new edition.
316315

317316
## Target auto-discovery
318317

0 commit comments

Comments
 (0)