Skip to content

Commit e8ba075

Browse files
authored
Merge pull request #775 from steffahn/tuple_pat
Fix grammar for tuple struct patterns.
2 parents 8e5873c + 1750e2d commit e8ba075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patterns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ A struct pattern is refutable when one of its subpatterns is refutable.
556556

557557
> **<sup>Syntax</sup>**\
558558
> _TupleStructPattern_ :\
559-
> &nbsp;&nbsp; [_PathInExpression_] `(` _TupleStructItems_ `)`
559+
> &nbsp;&nbsp; [_PathInExpression_] `(` _TupleStructItems_<sup>?</sup> `)`
560560
>
561561
> _TupleStructItems_ :\
562562
> &nbsp;&nbsp; &nbsp;&nbsp; [_Pattern_]&nbsp;( `,` [_Pattern_] )<sup>\*</sup> `,`<sup>?</sup>\

0 commit comments

Comments
 (0)