Skip to content

Commit a3ee4b9

Browse files
authored
Merge pull request #2036 from yyny/patch-1
Fix grammar of `ConstParam`
2 parents fe513a2 + 8878bcd commit a3ee4b9

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
@@ -13,7 +13,7 @@ TypeParam -> IDENTIFIER ( `:` TypeParamBounds? )? ( `=` Type )?
1313
1414
ConstParam ->
1515
`const` IDENTIFIER `:` Type
16-
( `=` BlockExpression | IDENTIFIER | `-`?LiteralExpression )?
16+
( `=` ( BlockExpression | IDENTIFIER | `-`?LiteralExpression ) )?
1717
```
1818

1919
r[items.generics.syntax.intro]

0 commit comments

Comments
 (0)