Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
zapashcanon committed Sep 15, 2023
1 parent ee3fe6e commit 62df3cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ let pure_wasm_module =
| Ok modul -> modul
(* our pure wasm module, linked with `sausage` *)
let module_to_run =
let module_to_run, link_state =
match
Compile.until_link link_state ~optimize:true ~name:None pure_wasm_module
with
| Error msg -> failwith msg
| Ok (m, _state) -> m
| Ok (m, link_state) -> m
(* let's run it ! it will print the values as defined in the print_i32 function *)
let () =
Expand Down
4 changes: 2 additions & 2 deletions example/extern.ml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ let pure_wasm_module =
| Ok modul -> modul

(* our pure wasm module, linked with `sausage` *)
let module_to_run =
let module_to_run, link_state =
match
Compile.until_link link_state ~optimize:true ~name:None pure_wasm_module
with
| Error msg -> failwith msg
| Ok (m, _state) -> m
| Ok v -> v

(* let's run it ! it will print the values as defined in the print_i32 function *)
let () =
Expand Down

0 comments on commit 62df3cb

Please sign in to comment.