File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,11 @@ not need to be specified as it's the `default`.
102
102
## WIT Worlds
103
103
[ worlds ] : #wit-worlds
104
104
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:
109
110
110
111
``` wit
111
112
world my-world {
@@ -136,13 +137,13 @@ Worlds can contain any number of imports and exports, and can be either a
136
137
function or an interface.
137
138
138
139
``` 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
143
144
// ...
144
145
145
- export command : func(args: list<string>)
146
+ export main : func(args: list<string>)
146
147
}
147
148
```
148
149
You can’t perform that action at this time.
0 commit comments