Skip to content

Commit

Permalink
fix example includes for bytecodealliance#9788 (bytecodealliance#9948)
Browse files Browse the repository at this point in the history
  • Loading branch information
chobermaier authored Jan 8, 2025
1 parent 51e28c7 commit 4ad53fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/examples-c-wasi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ This example shows off how to instantiate a wasm module using WASI imports.
## `wasi.c`

```c
{{#include ../examples/wasi/main.c}}
{{#include ../examples/wasip1/main.c}}
```
4 changes: 2 additions & 2 deletions docs/examples-rust-wasi.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This example shows adding and configuring the WASI imports to invoke the above W

`main.rs`
```rust,ignore
{{#include ../examples/wasi/main.rs}}
{{#include ../examples/wasip2/main.rs}}
```

### Async example
Expand All @@ -48,7 +48,7 @@ This does not require any change to the WASIp2 component, it's just the WASIp2 A
[`wasmtime-wasi`]: https://docs.rs/wasmtime-wasi/*/wasmtime_wasi/preview2/index.html

```rust,ignore
{{#include ../examples/wasi-async/main.rs}}
{{#include ../examples/wasip2-async/main.rs}}
```

You can also [browse this source code online][code2] and clone the wasmtime
Expand Down

0 comments on commit 4ad53fa

Please sign in to comment.