Skip to content

Commit

Permalink
use compiler in example
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <adrian@tetrate.io>
  • Loading branch information
Adrian Cole committed Aug 7, 2022
1 parent dd94fbf commit 4b3ec3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wasm_exec/cat.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
ctx := context.Background()

// Create a new WebAssembly Runtime.
r := wazero.NewRuntimeWithConfig(wazero.NewRuntimeConfigInterpreter().WithWasmCore2())
r := wazero.NewRuntimeWithConfig(wazero.NewRuntimeConfig().WithWasmCore2())
defer r.Close(ctx) // This closes everything this Runtime created.

// Compile the WebAssembly module using the default configuration.
Expand Down

0 comments on commit 4b3ec3c

Please sign in to comment.