Skip to content

Commit 1978748

Browse files
committed
Say Field Record Update only works for structs.
This is a minimal change, as I'd like to make more massive changes in a separate PR touching on most of the page.
1 parent 4471b0e commit 1978748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/struct-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ A value of a [union] type can only be created using this syntax, and it must spe
5656

5757
## Functional update syntax
5858

59-
A struct expression can terminate with the syntax `..` followed by an expression to denote a functional update.
59+
A struct expression that constructs a struct can terminate with the syntax `..` followed by an expression to denote a functional update.
6060
The expression following `..` (the base) must have the same struct type as the new struct type being formed.
6161

6262
The entire expression uses the given values for the fields that were specified and moves or copies the remaining fields from the base expression.

0 commit comments

Comments
 (0)