diff --git a/docs/source/Grammar.md b/docs/source/Grammar.md index 724137e41..51cc5f0c0 100644 --- a/docs/source/Grammar.md +++ b/docs/source/Grammar.md @@ -14,7 +14,7 @@ attribute\_decl = `attribute` ident | `"`ident`"` `;` type\_decl = ( `table` | `struct` ) ident metadata `{` field\_decl+ `}` -enum\_decl = ( `enum` ident [ `:` type ] | `union` ident ) metadata `{` +enum\_decl = ( `enum` ident `:` type | `union` ident ) metadata `{` commasep( enumval\_decl ) `}` root\_decl = `root_type` ident `;`