Commit 8878bcd
authored
Fix grammar of
The grammar for `ConstParam` in https://doc.rust-lang.org/reference/items/generics.html#grammar-ConstParam was specified as:
```grammar
ConstParam →
'const' IDENTIFIER : Type
( '=' BlockExpression | IDENTIFIER | '-'? LiteralExpression )?
```
This implies that `IDENTIFIER` and `'-'? LiteralExpression` may not be preceded by `=`, but this is obviously not the case.ConstParam
1 parent 06ef608 commit 8878bcd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments