Skip to content

Commit

Permalink
Fix wasm tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer authored Sep 3, 2024
1 parent 810648f commit 83d53ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/how-to/web-assembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ WebAssembly.instantiateStreaming(fetch('main.wasm'))
.then((results) => {
// WebAssembly
const startWasm = window.performance.now();
let result = results.instance.exports._Z4fiboi(fiboBase); // Use the mangled name here
let result = results.instance.exports.fibo(fiboBase);
const stopWasm = window.performance.now();
console.log("Fibonacci Spice wasm: " + result);
console.log("Duration (millis): " + (stopWasm - startWasm));
Expand Down Expand Up @@ -110,4 +110,4 @@ Fibonacci JS: 1134903170
Duration (millis): 8946.19999999553
```

Congrats on your first WebAssembly project in Spice!
Congrats on your first WebAssembly project in Spice!

0 comments on commit 83d53ba

Please sign in to comment.