diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 5018c56e..08f4145e 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -297,7 +297,7 @@ --- - [WebAssembly basics](webassembly.md) -- [Load a WASM module](webassembly/load-wasm-module.md) +- [Load a Wasm module](webassembly/load-wasm-module.md) - [Expose a method](webassembly/expose-method.md) - [Error handling for exposed methods](webassembly/expose-method/error-handling.md) - [Import Method](webassembly/import-method.md) diff --git a/src/rust-wasm-template/README.md b/src/rust-wasm-template/README.md index d7448476..d457f258 100644 --- a/src/rust-wasm-template/README.md +++ b/src/rust-wasm-template/README.md @@ -1,6 +1,6 @@ # rust-wasm-template -This repository contains the minimum amount of code needed to experiment with WebAssembly. Including a web server to serve the HTML and WASM as well as the javascript boilerplate needed to load WASM. +This repository contains the minimum amount of code needed to experiment with WebAssembly. Including a web server to serve the HTML and Wasm as well as the javascript boilerplate needed to load Wasm. - `static` contains the static files including compiled webassembly. - `src/lib.rs` contains the Rust code. @@ -51,7 +51,7 @@ cargo server Visit http://localhost:8000 -## Build WASM and copy target to the correct path +## Build Wasm and copy target to the correct path ``` wasm-pack build --target web --out-dir static/wasm diff --git a/src/rust-wasm-template/static/index.html b/src/rust-wasm-template/static/index.html index a66a99bc..fa61ecb1 100644 --- a/src/rust-wasm-template/static/index.html +++ b/src/rust-wasm-template/static/index.html @@ -11,13 +11,13 @@ Comprehensive Rust 🦀 WebAssembly Template
- This repository contains the minimum amount of code needed to experiment with WebAssembly. Including a web server to serve the HTML and WASM as well as the javascript boilerplate needed to load WASM. + This repository contains the minimum amount of code needed to experiment with WebAssembly. Including a web server to serve the HTML and Wasm as well as the javascript boilerplate needed to load Wasm.
Edit server/files/index.mjs to edit the Javascript.
-WASM output: +Wasm output: