Update Cookbook.md (#502)

Replace obsolete calls with `local.get`.
This commit is contained in:
Devin Bayer
2024-08-25 20:36:43 +03:00
committed by GitHub
parent 26e7a8758e
commit 668e890718
+2 -2
View File
@@ -262,8 +262,8 @@ Create `swap.wat`:
```wat ```wat
(module (module
(func (export "swap") (param i32 i32) (result i32 i32) (func (export "swap") (param i32 i32) (result i32 i32)
(get_local 1) (local.get 1)
(get_local 0) (local.get 0)
) )
) )
``` ```