Skip to content

Commit 156a7f8

Browse files
committed
Fix links to loops secction
1 parent 3c46293 commit 156a7f8

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/expressions.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -260,19 +260,17 @@ colon. In the case of a tuple struct the field names are numbers corresponding
260260
to the position of the field. The numbers must be written in decimal,
261261
containing no underscores and with no leading zeros or integer suffix.
262262

263-
Struct expressions can't be used directly in the head of an
264-
[`if`](#if-expressions), [`while`](#while-loops),
265-
[`match`](#match-expressions), [`for`](#for-expressions), [`if
266-
let`](#if-let-expressions) or [`while let`](#while-let-loops) expression. But
267-
struct expressions can still be in used inside parentheses, for example.
268-
269-
A _tuple struct expression_ consists of the [path](paths.html) of a [struct
270-
item](items.html#structs), followed by a parenthesized list of one or more
271-
comma-separated expressions (in other words, the path of a struct item followed
272-
by a tuple expression). The struct item must be a tuple struct item.
273-
274-
A _unit-like struct expression_ consists only of the [path](paths.html) of a
275-
[struct item](items.html#structs).
263+
Struct expressions can't be used directly in the head of a [loop](#loops) or an
264+
[`if`](#if-expressions), [`if let`](#if-let-expressions) or
265+
[`match`](#match-expressions) expression. But struct expressions can still be
266+
in used inside parentheses, for example.
267+
268+
A _tuple struct expression_ consists of the path of a struct item, followed by
269+
a parenthesized list of one or more comma-separated expressions (in other
270+
words, the path of a struct item followed by a tuple expression). The struct
271+
item must be a tuple struct item.
272+
273+
A _unit-like struct expression_ consists only of the path of a struct item.
276274

277275
The following are examples of struct expressions:
278276

0 commit comments

Comments
 (0)