Skip to content

Commit b057b52

Browse files
authored
Update struct-expr.md
1 parent 9894da5 commit b057b52

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/expressions/struct-expr.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
> &nbsp;&nbsp; _StructExprField_ (`,` _StructExprField_)<sup>\*</sup> (`,` _StructBase_ | `,`<sup>?</sup>)
1414
>
1515
> _StructExprField_ :\
16-
> &nbsp;&nbsp; &nbsp;&nbsp; [IDENTIFIER]\
17-
> &nbsp;&nbsp; | ([IDENTIFIER] | [TUPLE_INDEX]) `:` [_Expression_]
18-
>
16+
> &nbsp;&nbsp; [_OuterAttribute_] <sup>\*</sup>\
17+
> &nbsp;&nbsp; (\
18+
> &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; [IDENTIFIER]\
19+
> &nbsp;&nbsp; &nbsp;&nbsp; | ([IDENTIFIER] | [TUPLE_INDEX]) `:` [_Expression_]\
20+
> &nbsp;&nbsp; )
21+
>
1922
> _StructBase_ :\
2023
> &nbsp;&nbsp; `..` [_Expression_]
2124
>
@@ -121,6 +124,7 @@ let a = Gamma; // Gamma unit value.
121124
let b = Gamma{}; // Exact same value as `a`.
122125
```
123126

127+
[_OuterAttribute_]: attributes.md
124128
[IDENTIFIER]: ../identifiers.md
125129
[TUPLE_INDEX]: ../tokens.md#tuple-index
126130
[_Expression_]: ../expressions.md

0 commit comments

Comments
 (0)