Skip to content

Commit

Permalink
Merge pull request #1346 from sam-zheng/patch-1
Browse files Browse the repository at this point in the history
redundant word removed
  • Loading branch information
ehuss authored Mar 29, 2023
2 parents 3c47807 + 6e6e8b4 commit fcc12c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expressions/struct-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ drop(y_ref);
```

Struct expressions with curly braces can't be used directly in a [loop] or [if] expression's head, or in the [scrutinee] of an [if let] or [match] expression.
However, struct expressions can be in used in these situations if they are within another expression, for example inside [parentheses].
However, struct expressions can be used in these situations if they are within another expression, for example inside [parentheses].

The field names can be decimal integer values to specify indices for constructing tuple structs.
This can be used with base structs to fill out the remaining indices not specified:
Expand Down

0 comments on commit fcc12c7

Please sign in to comment.