Skip to content

Commit 6a0886c

Browse files
committed
Link to the Rust edition guide for more information about editions
1 parent 0217565 commit 6a0886c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/doc/style-guide/src/editions.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ The default Rust style evolves over time, as Rust does. However, to avoid
44
breaking established code style, and CI jobs checking code style, changes to
55
the default Rust style only appear in *style editions*.
66

7-
Code written in a given Rust edition uses the corresponding Rust style edition
8-
by default. To make it easier to migrate code style separately from the
9-
semantic changes between Rust editions, formatting tools such as `rustfmt`
10-
allow updating the style edition separately from the Rust edition.
7+
Code written in a given
8+
[Rust edition](https://doc.rust-lang.org/edition-guide/)
9+
uses the corresponding Rust style edition by default. To make it easier to
10+
migrate code style separately from the semantic changes between Rust editions,
11+
formatting tools such as `rustfmt` allow updating the style edition separately
12+
from the Rust edition.
1113

1214
The current version of the style guide describes the latest Rust style edition.
1315
Each distinct past style will have a corresponding archived version of the

0 commit comments

Comments
 (0)