diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2023-12-01 04:05:51 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2023-12-01 04:05:51 +0100 |
| commit | 266afb16777970b37a61889039a0a2ea1ad1f83a (patch) | |
| tree | dbabbf35683bc7efcede8ce5b752640a71fab659 /crates/cli/bin.rs | |
| parent | f28ea9c7cca56031e14932876964aeee66392b12 (diff) | |
chore: add instructions
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/cli/bin.rs')
| -rw-r--r-- | crates/cli/bin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/cli/bin.rs b/crates/cli/bin.rs index b085ae1..2c554cd 100644 --- a/crates/cli/bin.rs +++ b/crates/cli/bin.rs @@ -70,7 +70,7 @@ fn main() -> Result<()> { fn run(wasm: &[u8]) -> Result<()> { let mut store = tinywasm::Store::default(); - let module = tinywasm::Module::try_new(wasm)?; + let module = tinywasm::Module::from_bytes(wasm)?; let instance = module.instantiate(&mut store)?; let func = instance.get_func("add").unwrap(); |
