Merge pull request #1346 from sam-zheng/patch-1

redundant word removed
This commit is contained in:
Eric Huss 2023-03-29 06:21:47 -07:00 committed by GitHub
commit fcc12c7a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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. 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. 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: This can be used with base structs to fill out the remaining indices not specified: