diff --git a/docs/docs/how-to/web-assembly.md b/docs/docs/how-to/web-assembly.md index 09a0d8f34..6d696900a 100644 --- a/docs/docs/how-to/web-assembly.md +++ b/docs/docs/how-to/web-assembly.md @@ -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)); @@ -110,4 +110,4 @@ Fibonacci JS: 1134903170 Duration (millis): 8946.19999999553 ``` -Congrats on your first WebAssembly project in Spice! \ No newline at end of file +Congrats on your first WebAssembly project in Spice!