Skip to content

Commit 1ffa930

Browse files
authored
Fix a grammar error
1 parent 89d7677 commit 1ffa930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

design/mvp/WIT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ readability but this isn't required.
922922
Concretely, the structure of a `wit` file is:
923923

924924
```ebnf
925-
wit-file ::= package-decl? (package-items | nested-package-definition)*
925+
wit-file ::= (package-decl ';')? (package-items | nested-package-definition)*
926926
927927
nested-package-definition ::= package-decl '{' package-items* '}'
928928
@@ -1188,7 +1188,7 @@ WIT files optionally start with a package declaration which defines the name of
11881188
the package.
11891189

11901190
```ebnf
1191-
package-decl ::= 'package' ( id ':' )+ id ( '/' id )* ('@' valid-semver)? ';'
1191+
package-decl ::= 'package' ( id ':' )+ id ( '/' id )* ('@' valid-semver)?
11921192
```
11931193

11941194
The production `valid-semver` is as defined by

0 commit comments

Comments
 (0)