Skip to content

Commit 94e18d3

Browse files
committed
Move the recursion in GenericParams to the right
This makes it easier to read the production from left to right: a GenericParam, zero or more (comma followed by GenericParam), optional trailing comma.
1 parent 1567573 commit 94e18d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/generics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ r[items.generics]
33

44
r[items.generics.syntax]
55
```grammar,items
6-
GenericParams -> `<` ( (GenericParam `,`)* GenericParam `,`? )? `>`
6+
GenericParams -> `<` ( GenericParam (`,` GenericParam)* `,`? )? `>`
77
88
GenericParam -> OuterAttribute* ( LifetimeParam | TypeParam | ConstParam )
99

0 commit comments

Comments
 (0)