Skip to content

Commit 19dd3dd

Browse files
Merge pull request #267 from brauliobz/little_fix
Fixed non-escaped *s in grammar
2 parents f298be6 + 89a49cd commit 19dd3dd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/expressions/match-expr.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> _MatchArmPatterns_ _MatchArmGuard_<sup>?</sup>
1919
>
2020
> _MatchArmPatterns_ :
21-
> &nbsp;&nbsp; `|`<sup>?</sup> _Pattern_ ( `|` _Pattern_ )<sup>*</sup>
21+
> &nbsp;&nbsp; `|`<sup>?</sup> _Pattern_ ( `|` _Pattern_ )<sup>\*</sup>
2222
>
2323
> _MatchArmGuard_ :
2424
> &nbsp;&nbsp; `if` [_Expression_]
@@ -183,4 +183,3 @@ let message = match maybe_digit {
183183
[numeric types]: types.html#numeric-types
184184
[_InnerAttribute_]: attributes.html
185185
[_OuterAttribute_]: attributes.html
186-
[range]: expressions/range-expr.html

src/items/use-declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
>
77
> _UseTree_ :
88
> &nbsp;&nbsp; &nbsp;&nbsp; ([_SimplePath_]<sup>?</sup> `::`)<sup>?</sup> `*`
9-
> &nbsp;&nbsp; | ([_SimplePath_]<sup>?</sup> `::`)<sup>?</sup> `{` (_UseTree_ ( `,` _UseTree_ )<sup>*</sup> `,`<sup>?</sup>)<sup>?</sup> `}`
9+
> &nbsp;&nbsp; | ([_SimplePath_]<sup>?</sup> `::`)<sup>?</sup> `{` (_UseTree_ ( `,` _UseTree_ )<sup>\*</sup> `,`<sup>?</sup>)<sup>?</sup> `}`
1010
> &nbsp;&nbsp; | [_SimplePath_] `as` [IDENTIFIER]
1111
1212
A _use declaration_ creates one or more local name bindings synonymous with

0 commit comments

Comments
 (0)