Skip to content

Commit 28fa730

Browse files
committed
move link refs to bottom of pages.
1 parent e381b44 commit 28fa730

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/expressions/loop-expr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ while i < 10 {
7070
> &nbsp;&nbsp; `while` `let` [_Pattern_] `=` [_Expression_]<sub>except struct expression</sub>
7171
> [_BlockExpression_]
7272
73-
[scrutinee]: glossary.html#scrutinee
74-
7573
A `while let` loop is semantically similar to a `while` loop but in place of a
7674
condition expression it expects the keyword `let` followed by a refutable
7775
pattern, an `=`, a [scrutinee] expression and a block expression. If the value of
@@ -276,3 +274,5 @@ expression `()`.
276274
[_Pattern_]: patterns.html
277275

278276
[LIFETIME_OR_LABEL]: tokens.html#lifetimes-and-loop-labels
277+
278+
[scrutinee]: glossary.html#scrutinee

src/expressions/match-expr.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
> _MatchArmGuard_ :\
2424
> &nbsp;&nbsp; `if` [_Expression_]
2525
26-
[scrutinee]: glossary.html#scrutinee
27-
2826
A *`match` expression* branches on a pattern. The exact form of matching that
2927
occurs depends on the [pattern]. A `match`
3028
expression has a *[scrutinee] expression*, which is the value to compare to the
@@ -146,3 +144,4 @@ expressions].
146144
[Range Pattern]: patterns.html#range-patterns
147145
[attributes on block expressions]: expressions/block-expr.html#attributes-on-block-expressions
148146
[binding mode]: patterns.html#binding-modes
147+
[scrutinee]: glossary.html#scrutinee

src/expressions/struct-expr.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ let base = Point3d {x: 1, y: 2, z: 3};
7171
Point3d {y: 0, z: 10, .. base};
7272
```
7373

74-
[scrutinee]: glossary.html#scrutinee
75-
7674
Struct expressions with curly braces can't be used directly in a [loop] or [if]
7775
expression's head, or in the [scrutinee] of an [if let] or [match] expression.
7876
However, struct expressions can be in used in these situations if they are
@@ -153,3 +151,4 @@ expressions].
153151
[struct]: items/structs.html
154152
[union]: items/unions.html
155153
[visible]: visibility-and-privacy.html
154+
[scrutinee]: glossary.html#scrutinee

src/patterns.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ Patterns are used in:
6767

6868
## Destructuring
6969

70-
[scrutinee]: glossary.html#scrutinee
71-
7270
Patterns can be used to *destructure* [structs], [enums], and [tuples].
7371
Destructuring breaks up a value into its component pieces. The syntax used is
7472
almost the same as when creating such values. In a pattern whose [scrutinee]
@@ -678,3 +676,4 @@ refer to refutable constants or enum variants for enums with multiple variants.
678676
[literals]: expressions/literal-expr.html
679677
[structs]: items/structs.html
680678
[tuples]: types/tuple.html
679+
[scrutinee]: glossary.html#scrutinee

0 commit comments

Comments
 (0)