Skip to content

Commit

Permalink
chore: Update example for breaking changes (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Sep 14, 2021
1 parent 36eedea commit f0af162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -18,9 +18,9 @@ let params = Type.create [| Type.int32; Type.int32 |]
let results = Type.int32
(* Get arguments 0 and 1, add them *)
let x = Expression.local_get wasm_mod 0 Type.int32
let y = Expression.local_get wasm_mod 1 Type.int32
let add = Expression.binary wasm_mod Op.add_int32 x y
let x = Expression.Local_get.make wasm_mod 0 Type.int32
let y = Expression.Local_get.make wasm_mod 1 Type.int32
let add = Expression.Binary.make wasm_mod Op.add_int32 x y
(* Create the add function *)
(* Note: no additional local variables *)
Expand Down

0 comments on commit f0af162

Please sign in to comment.