Skip to content

Commit 4c75c0b

Browse files
committed
let bindings disallow top-level or-patterns (for now)
1 parent 1be55f9 commit 4c75c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/statements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn outer() {
5353

5454
> **<sup>Syntax</sup>**\
5555
> _LetStatement_ :\
56-
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> `let` [_Pattern_]
56+
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> `let` [_PatternNoTopAlt_]
5757
> ( `:` [_Type_] )<sup>?</sup> (`=` [_Expression_] )<sup>?</sup> `;`
5858
5959
A *`let` statement* introduces a new set of [variables], given by an

0 commit comments

Comments
 (0)