Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 0c31a33

Browse files
authored
Merge pull request #230 from brettcannon/patch-2
Update factorial example from using get_local to local.get
2 parents ffe0b33 + 36cc922 commit 0c31a33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/what-is-webassembly.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ For reference, here is a factorial function in `wat`:
2020
```
2121
(module
2222
(func $fac (param f64) (result f64)
23-
get_local 0
23+
local.get 0
2424
f64.const 1
2525
f64.lt
2626
if (result f64)
2727
f64.const 1
2828
else
29-
get_local 0
30-
get_local 0
29+
local.get 0
30+
local.get 0
3131
f64.const 1
3232
f64.sub
3333
call $fac

0 commit comments

Comments
 (0)