From 6a0886cdba7e6d35e1fa51d467b07ca83d888972 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Mon, 31 Jul 2023 16:07:48 -0700 Subject: [PATCH] Link to the Rust edition guide for more information about editions --- src/doc/style-guide/src/editions.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/doc/style-guide/src/editions.md b/src/doc/style-guide/src/editions.md index e9a91d0507a..5c67a185b8f 100644 --- a/src/doc/style-guide/src/editions.md +++ b/src/doc/style-guide/src/editions.md @@ -4,10 +4,12 @@ The default Rust style evolves over time, as Rust does. However, to avoid breaking established code style, and CI jobs checking code style, changes to the default Rust style only appear in *style editions*. -Code written in a given Rust edition uses the corresponding Rust style edition -by default. To make it easier to migrate code style separately from the -semantic changes between Rust editions, formatting tools such as `rustfmt` -allow updating the style edition separately from the Rust edition. +Code written in a given +[Rust edition](https://doc.rust-lang.org/edition-guide/) +uses the corresponding Rust style edition by default. To make it easier to +migrate code style separately from the semantic changes between Rust editions, +formatting tools such as `rustfmt` allow updating the style edition separately +from the Rust edition. The current version of the style guide describes the latest Rust style edition. Each distinct past style will have a corresponding archived version of the