You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/expressions/struct-expr.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ A value of a [union] type can only be created using this syntax, and it must spe
56
56
57
57
## Functional update syntax
58
58
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 value of a struct type can terminate with the syntax `..` followed by an expression to denote a functional update.
60
60
The expression following `..` (the base) must have the same struct type as the new struct type being formed.
61
61
62
62
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