diff --git a/src/doc/trpl/enums.md b/src/doc/trpl/enums.md index ad15d19eae143..55de363280026 100644 --- a/src/doc/trpl/enums.md +++ b/src/doc/trpl/enums.md @@ -66,3 +66,4 @@ equality yet, but we’ll find out in the [`traits`][traits] section. [match]: match.html [if-let]: if-let.html +[traits]: traits.html diff --git a/src/doc/trpl/match.md b/src/doc/trpl/match.md index 2bb2359ba5a01..113e218883b34 100644 --- a/src/doc/trpl/match.md +++ b/src/doc/trpl/match.md @@ -97,4 +97,4 @@ Unlike the previous uses of `match`, you can’t use the normal `if` statement to do this. You can use the [`if let`][if-let] statement, which can be seen as an abbreviated form of `match`. -[if-let][if-let.html] +[if-let]: if-let.html diff --git a/src/doc/trpl/structs.md b/src/doc/trpl/structs.md index ad7ead9319989..5729aeefbac9c 100644 --- a/src/doc/trpl/structs.md +++ b/src/doc/trpl/structs.md @@ -196,3 +196,5 @@ useful. For instance, a library may ask you to create a structure that implements a certain [trait][trait] to handle events. If you don’t have any data you need to store in the structure, you can just create a unit-like struct. + +[trait]: traits.html