Skip to content

Commit cb922fb

Browse files
committed
Review comments
1 parent a8fe6db commit cb922fb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

design/mvp/WIT.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ not need to be specified as it's the `default`.
102102
## WIT Worlds
103103
[worlds]: #wit-worlds
104104

105-
WIT documents can contain a `world` annotation at the top-level in addition to
106-
[`interface`][interfaces]. A world is a complete description of both imports and
107-
exports of a component. A world can be thought of as an equivalent of a
108-
`component` type in the component model. For example this world:
105+
WIT documents can contain a `world` definition at the top-level in addition to
106+
[`interface`][interfaces] definitions. A world is a complete description of
107+
both imports and exports of a component. A world can be thought of as an
108+
equivalent of a `component` type in the component model. For example this
109+
world:
109110

110111
```wit
111112
world my-world {
@@ -136,13 +137,13 @@ Worlds can contain any number of imports and exports, and can be either a
136137
function or an interface.
137138

138139
```wit
139-
world wasi {
140-
import wasi-fs: wasi.fs
141-
import wasi-random: wasi.random
142-
import wasi-clock: wasi.clock
140+
world command {
141+
import fs: wasi-fs.fs
142+
import random: wasi-random.random
143+
import clock: wasi-clock.clock
143144
// ...
144145
145-
export command: func(args: list<string>)
146+
export main: func(args: list<string>)
146147
}
147148
```
148149

0 commit comments

Comments
 (0)