diff --git a/docs/quickstart/develop-a-webassembly-component.mdx b/docs/quickstart/develop-a-webassembly-component.mdx index 6534e0eb..a80a9ea2 100644 --- a/docs/quickstart/develop-a-webassembly-component.mdx +++ b/docs/quickstart/develop-a-webassembly-component.mdx @@ -58,7 +58,8 @@ async fn main(req: Request) -> Result, wstd::http::Error> { } } -async fn home(req: Request) -> Result, wstd::http::Error> { +async fn home(_req: Request) -> Result, wstd::http::Error> { // [!code --] +async fn home(req: Request) -> Result, wstd::http::Error> { // [!code ++] // Parse query string for name parameter // [!code ++] let query = req.uri().query().unwrap_or(""); // [!code ++] let name = match query.split("=").collect::>()[..] { // [!code ++] @@ -173,8 +174,13 @@ Before we can use the interface, we'll need to update the `wit/world.wit` file: package wasmcloud:hello; world hello { - import wasi:keyvalue/store@0.2.0-draft; // [!code ++] - import wasi:keyvalue/atomics@0.2.0-draft; // [!code ++] + // [!code ++] + import wasi:keyvalue/store@0.2.0-draft; + // [!code ++] + import wasi:keyvalue/atomics@0.2.0-draft; + // [!code ++] + + export wasi:http/incoming-handler@0.2.6; } ``` @@ -186,8 +192,11 @@ Before we can use the interface, we'll need to update the `wit/world.wit` file: package wasmcloud:templates@0.1.0; world typescript-http-hello-world-hono { - import wasi:keyvalue/store@0.2.0-draft; // [!code ++] - import wasi:keyvalue/atomics@0.2.0-draft; // [!code ++] + // [!code ++] + import wasi:keyvalue/store@0.2.0-draft; + // [!code ++] + import wasi:keyvalue/atomics@0.2.0-draft; + // [!code ++] export wasi:http/incoming-handler@0.2.6; } diff --git a/docs/wash/developer-guide/index.mdx b/docs/wash/developer-guide/index.mdx index 836d7682..62a19aed 100644 --- a/docs/wash/developer-guide/index.mdx +++ b/docs/wash/developer-guide/index.mdx @@ -392,4 +392,4 @@ You can stop the development loop with CTRL+C. ## Next steps -In the [next section](./build-and-publish.mdx), we'll compile a component to a `.wasm` binary and publish the artifact to an OCI registry. \ No newline at end of file +In the [next section](./build-and-publish.mdx), we'll compile a component to a `.wasm` binary and publish the artifact to an OCI registry. diff --git a/versioned_docs/version-0.82/examples/cruddy.mdx b/versioned_docs/version-0.82/examples/cruddy.mdx index 0180f924..765246b6 100644 --- a/versioned_docs/version-0.82/examples/cruddy.mdx +++ b/versioned_docs/version-0.82/examples/cruddy.mdx @@ -156,7 +156,8 @@ Remember that we targeted the `hello` world in our `wasmcloud.toml` file; this i package wasmcloud:hello; world hello { - import wasi:keyvalue/eventual@0.1.0; // [!code ++] + // [!code ++] + import wasi:keyvalue/eventual@0.1.0; // [!code ++] export wasi:http/incoming-handler@0.2.0; }