Fixed the associated syntax error in the associated type Trait Headers

This commit is contained in:
hymmnos-life 2022-07-16 23:16:22 +08:00
parent e9e8ac8d91
commit f48e32e4cc
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ Trait headers are written according to the following grammar:
TRAIT_HEADER =
'trait' IDENT [ '<' INPUT_PARAMS '>' ] [ ':' BOUNDS ] [ WHERE_CLAUSE ]
INPUT_PARAMS = INPUT_TY { ',' INPUT_TY }* [ ',' ]
INPUT_PARAMS = INPUT_PARAM { ',' INPUT_PARAM }* [ ',' ]
INPUT_PARAM = IDENT [ ':' BOUNDS ]
BOUNDS = BOUND { '+' BOUND }* [ '+' ]