diff --git a/docs/language/31-grammar.md b/docs/language/31-grammar.md index 7966c60..1444c09 100644 --- a/docs/language/31-grammar.md +++ b/docs/language/31-grammar.md @@ -52,7 +52,7 @@ Statements are inevitably the building blocks of a program and make use of all the former defined sections of the grammar and more of themsleves in some cases as well. - module ::= "module", ident, ";", {decl}; + module ::= "module", ident, ";", {decl, ";"}; decl ::= vdecl | funcDecl; diff --git a/docs_src/language/31-grammar.md b/docs_src/language/31-grammar.md index 19754d6..7affc20 100644 --- a/docs_src/language/31-grammar.md +++ b/docs_src/language/31-grammar.md @@ -55,7 +55,7 @@ use of all the former defined sections of the grammar and more of themsleves in some cases as well. ``` -module ::= "module", ident, ";", {decl}; +module ::= "module", ident, ";", {decl, ";"}; decl ::= vdecl | funcDecl;