diff --git a/docs/examples-c-wasi.md b/docs/examples-c-wasi.md index 7367fb538bca..c8b842d3b4fb 100644 --- a/docs/examples-c-wasi.md +++ b/docs/examples-c-wasi.md @@ -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}} ``` diff --git a/docs/examples-rust-wasi.md b/docs/examples-rust-wasi.md index 7dc223fc08e3..4dafb74f6efa 100644 --- a/docs/examples-rust-wasi.md +++ b/docs/examples-rust-wasi.md @@ -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 @@ -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