Skip to content

Commit

Permalink
Fix WIT declaration in the component example (#262)
Browse files Browse the repository at this point in the history
wasm-tools component embed -w demo demo.wit demo.wat -o demo.wasm
error: expected '{', found keyword `world`
     --> demo.wit:3:1
      |
    3 | world demo {

wasm-tools --version
    wasm-tools 1.222.0
  • Loading branch information
xeioex authored Dec 19, 2024
1 parent cdcc6e5 commit 4f81db5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ example with this core wasm module at `demo.wat`:
and with this [`*.wit`] interface at `demo.wit`:

```text
package my:demo
package my:demo;
world demo {
import python: interface {
print: func(s: string)
print: func(s: string);
}
export run: func()
export run: func();
}
```

Expand Down

0 comments on commit 4f81db5

Please sign in to comment.