Skip to content

Commit 7a5cd3c

Browse files
committed
Rollup merge of #28473 - tshepang:lowercase, r=steveklabnik
2 parents cd5870f + a3305f8 commit 7a5cd3c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/doc/reference.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -3035,18 +3035,18 @@ A `loop` expression may optionally have a _label_. The label is written as
30353035
a lifetime preceding the loop expression, as in `'foo: loop{ }`. If a
30363036
label is present, then labeled `break` and `continue` expressions nested
30373037
within this loop may exit out of this loop or return control to its head.
3038-
See [Break expressions](#break-expressions) and [Continue
3038+
See [break expressions](#break-expressions) and [continue
30393039
expressions](#continue-expressions).
30403040

3041-
### Break expressions
3041+
### `break` expressions
30423042

30433043
A `break` expression has an optional _label_. If the label is absent, then
30443044
executing a `break` expression immediately terminates the innermost loop
30453045
enclosing it. It is only permitted in the body of a loop. If the label is
30463046
present, then `break 'foo` terminates the loop with label `'foo`, which need not
30473047
be the innermost label enclosing the `break` expression, but must enclose it.
30483048

3049-
### Continue expressions
3049+
### `continue` expressions
30503050

30513051
A `continue` expression has an optional _label_. If the label is absent, then
30523052
executing a `continue` expression immediately terminates the current iteration
@@ -3059,7 +3059,7 @@ innermost label enclosing the `break` expression, but must enclose it.
30593059

30603060
A `continue` expression is only permitted in the body of a loop.
30613061

3062-
### While loops
3062+
### `while` loops
30633063

30643064
A `while` loop begins by evaluating the boolean loop conditional expression.
30653065
If the loop conditional expression evaluates to `true`, the loop body block
@@ -3082,7 +3082,7 @@ Like `loop` expressions, `while` loops can be controlled with `break` or
30823082
loops](#infinite-loops), [break expressions](#break-expressions), and
30833083
[continue expressions](#continue-expressions) for more information.
30843084

3085-
### For expressions
3085+
### `for` expressions
30863086

30873087
A `for` expression is a syntactic construct for looping over elements provided
30883088
by an implementation of `std::iter::IntoIterator`.
@@ -3117,7 +3117,7 @@ Like `loop` expressions, `for` loops can be controlled with `break` or
31173117
loops](#infinite-loops), [break expressions](#break-expressions), and
31183118
[continue expressions](#continue-expressions) for more information.
31193119

3120-
### If expressions
3120+
### `if` expressions
31213121

31223122
An `if` expression is a conditional branch in program control. The form of an
31233123
`if` expression is a condition expression, followed by a consequent block, any
@@ -3129,7 +3129,7 @@ evaluates to `false`, the consequent block is skipped and any subsequent `else
31293129
if` condition is evaluated. If all `if` and `else if` conditions evaluate to
31303130
`false` then any `else` block is executed.
31313131

3132-
### Match expressions
3132+
### `match` expressions
31333133

31343134
A `match` expression branches on a *pattern*. The exact form of matching that
31353135
occurs depends on the pattern. Patterns consist of some combination of
@@ -3235,7 +3235,7 @@ let message = match maybe_digit {
32353235
};
32363236
```
32373237

3238-
### If let expressions
3238+
### `if let` expressions
32393239

32403240
An `if let` expression is semantically identical to an `if` expression but in place
32413241
of a condition expression it expects a refutable let statement. If the value of the
@@ -3256,15 +3256,15 @@ if let ("Ham", b) = dish {
32563256
}
32573257
```
32583258

3259-
### While let loops
3259+
### `while let` loops
32603260

32613261
A `while let` loop is semantically identical to a `while` loop but in place of a
32623262
condition expression it expects a refutable let statement. If the value of the
32633263
expression on the right hand side of the let statement matches the pattern, the
32643264
loop body block executes and control returns to the pattern matching statement.
32653265
Otherwise, the while expression completes.
32663266

3267-
### Return expressions
3267+
### `return` expressions
32683268

32693269
Return expressions are denoted with the keyword `return`. Evaluating a `return`
32703270
expression moves its argument into the designated output location for the

0 commit comments

Comments
 (0)