Skip to content

Commit 35c098a

Browse files
committed
Fix nonterminals of ConstParam
These two nonterminals were using the wrong name for the productions for BlockExpression and LiteralExpression.
1 parent 36c8d99 commit 35c098a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ r[items.generics.syntax]
1717
> &nbsp;&nbsp; [IDENTIFIER]&nbsp;( `:` [_TypeParamBounds_]<sup>?</sup> )<sup>?</sup> ( `=` [_Type_] )<sup>?</sup>
1818
>
1919
> _ConstParam_:\
20-
> &nbsp;&nbsp; `const` [IDENTIFIER] `:` [_Type_] ( `=` _[Block][block]_ | [IDENTIFIER] | -<sup>?</sup>[LITERAL] )<sup>?</sup>
20+
> &nbsp;&nbsp; `const` [IDENTIFIER] `:` [_Type_] ( `=` _[BlockExpression][block]_ | [IDENTIFIER] | `-`<sup>?</sup>[_LiteralExpression_][literal] )<sup>?</sup>
2121
2222
r[items.generics.syntax.intro]
2323
[Functions], [type aliases], [structs], [enumerations], [unions], [traits], and

0 commit comments

Comments
 (0)