From 6e6e8b42196d200eaa6b7fe9dad812dc9268985f Mon Sep 17 00:00:00 2001 From: Sam Zheng Date: Wed, 29 Mar 2023 14:46:43 +0800 Subject: [PATCH] redundant word removed "struct expressions can be in used in these situations" => "struct expressions can be used in these situations" --- src/expressions/struct-expr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expressions/struct-expr.md b/src/expressions/struct-expr.md index 8caeff2..8d91547 100644 --- a/src/expressions/struct-expr.md +++ b/src/expressions/struct-expr.md @@ -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: