about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2022-09-24 19:55:33 +0100
committerJosh Triplett <josh@joshtriplett.org>2022-09-24 19:55:33 +0100
commit9a72a668505f403f2ecdb63fdfd4df315b938c6b (patch)
treeaa6828d1c1186a2aad423269c7618212479e2765 /src
parent283c0e43caf6d61f4fdaf1320904cd34d7abff9e (diff)
downloadrust-9a72a668505f403f2ecdb63fdfd4df315b938c6b.tar.gz
rust-9a72a668505f403f2ecdb63fdfd4df315b938c6b.zip
style-guide: Fix broken links
Diffstat (limited to 'src')
-rw-r--r--src/doc/style-guide/src/expressions.md2
-rw-r--r--src/doc/style-guide/src/items.md2
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 dfa24549b57..c7d0446dded 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 7439c68d92c..2835975355f 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: