Skip to content

Commit 673d5c4

Browse files
authored
Update WIT.md package ids to match #222 (#246)
1 parent 33e09a5 commit 673d5c4

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
@@ -867,7 +867,7 @@ WIT files optionally start with a package declaration which defines the ID of
867867
the package.
868868

869869
```ebnf
870-
package-decl ::= 'package' id ':' id ('@' valid-semver)?
870+
package-decl ::= 'package' ( id ':' )+ id ( '/' id )* ('@' valid-semver)?
871871
```
872872

873873
The production `valid-semver` is as defined by
@@ -883,7 +883,7 @@ convenience:
883883
toplevel-use-item ::= 'use' use-path ('as' id)?
884884
885885
use-path ::= id
886-
| id ':' id '/' id ('@' valid-semver)?
886+
| ( id ':' )+ id ( '/' id )+ ('@' valid-semver)?
887887
```
888888

889889
Here `use-path` is the ID used to refer to interfaces. The bare form `id`

0 commit comments

Comments
 (0)