]> git.lizzy.rs Git - rust.git/commitdiff
style-guide: Fix broken links
authorJosh Triplett <josh@joshtriplett.org>
Sat, 24 Sep 2022 18:55:33 +0000 (19:55 +0100)
committerJosh Triplett <josh@joshtriplett.org>
Sat, 24 Sep 2022 18:55:33 +0000 (19:55 +0100)
src/doc/style-guide/src/expressions.md
src/doc/style-guide/src/items.md

index dfa24549b578085318004ab591e7547649b8416e..c7d0446dded19a58a73903854025d1ec75dce94b 100644 (file)
@@ -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
index 7439c68d92c7d64ad2a01b317996b8601a874b1e..2835975355fcaf0cbc5799981f38580fd92a369a 100644 (file)
@@ -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: