From 9a72a668505f403f2ecdb63fdfd4df315b938c6b Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 24 Sep 2022 19:55:33 +0100 Subject: [PATCH] style-guide: Fix broken links --- src/doc/style-guide/src/expressions.md | 2 +- src/doc/style-guide/src/items.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/style-guide/src/expressions.md b/src/doc/style-guide/src/expressions.md index dfa24549b5780..c7d0446dded19 100644 --- a/src/doc/style-guide/src/expressions.md +++ b/src/doc/style-guide/src/expressions.md @@ -489,7 +489,7 @@ This section covers `if`, `if let`, `loop`, `while`, `while let`, and `for` expressions. The keyword, any initial clauses, and the opening brace of the block should be -on a single line. The usual rules for [block formatting](#Blocks) should be +on a single line. The usual rules for [block formatting](#blocks) should be applied to the block. If there is an `else` component, then the closing brace, `else`, any following diff --git a/src/doc/style-guide/src/items.md b/src/doc/style-guide/src/items.md index 7439c68d92c7d..2835975355fca 100644 --- a/src/doc/style-guide/src/items.md +++ b/src/doc/style-guide/src/items.md @@ -77,7 +77,7 @@ enum FooBar { } ``` -If a struct variant is [*small*](#small-items), it may be formatted on +If a struct variant is [*small*](index.html#small-items), it may be formatted on one line. In this case, do not use a trailing comma for the field list, but do put spaces around each brace: