summaryrefslogtreecommitdiff
path: root/examples/archive.rs
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2025-01-14 17:41:29 +0100
committerHenry Gressmann <mail@henrygressmann.de>2025-01-14 17:41:29 +0100
commit40e570cf8bdd948c1e7e9dd85e5ac24d9a062d2a (patch)
tree64e9338f1c656fd9d81f51cd4f425359b2dbc6d1 /examples/archive.rs
parent1a64f4092af9304694e98f441b79f0a93ee1c194 (diff)
chore: update deps, spelling
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'examples/archive.rs')
-rw-r--r--examples/archive.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/archive.rs b/examples/archive.rs
index ea82c51..f1a19b6 100644
--- a/examples/archive.rs
+++ b/examples/archive.rs
@@ -11,12 +11,12 @@ const WASM: &str = r#"
"#;
fn main() -> Result<()> {
- let wasm = wat::parse_str(WASM).expect("failed to parse wat");
+ let wasm = wat::parse_str(WASM).expect("Failed to parse WAT");
let module = Parser::default().parse_module_bytes(wasm)?;
let twasm = module.serialize_twasm();
- // now, you could e.g. write twasm to a file called `add.twasm`
- // and load it later in a different program
+ // Now, you could e.g. write `twasm` to a file called `add.twasm`
+ // and load it later in a different program.
let module: Module = TinyWasmModule::from_twasm(&twasm)?.into();
let mut store = Store::default();