Skip to content

Commit c20b106

Browse files
committed
Remove extraneous ?s in struct grammar
The visibility grammar already has `EMPTY` as an option.
1 parent 45e4259 commit c20b106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/structs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
>
2626
> _StructField_ :
2727
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup>
28-
> &nbsp;&nbsp; [_Visibility_]<sup>?</sup>
28+
> &nbsp;&nbsp; [_Visibility_]
2929
> &nbsp;&nbsp; [IDENTIFIER] `:` [_Type_]
3030
>
3131
> _TupleFields_ :
3232
> &nbsp;&nbsp; _TupleField_ (`,` _TupleField_)<sup>\*</sup> `,`<sup>?</sup>
3333
>
3434
> _TupleField_ :
3535
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup>
36-
> &nbsp;&nbsp; [_Visibility_]<sup>?</sup>
36+
> &nbsp;&nbsp; [_Visibility_]
3737
> &nbsp;&nbsp; [_Type_]
3838
3939
A _struct_ is a nominal [struct type] defined with the keyword `struct`.

0 commit comments

Comments
 (0)