Skip to content

Commit

Permalink
fix typo in host func example (#449)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangchao <zchao9100@gmail.com>
  • Loading branch information
Taction authored Apr 9, 2022
1 parent 2577ec9 commit 9040fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/host_func_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func Test_hostFunc(t *testing.T) {
defer module.Close()

allocateInWasmBufferFn := module.ExportedFunction("allocate_buffer")
require.NotNil(t, allocateInWasmBuffer)
require.NotNil(t, allocateInWasmBufferFn)

// Implement the function pointer. This mainly shows how you can decouple a module function dependency.
allocateInWasmBuffer = func(ctx api.Module, size uint32) uint32 {
Expand Down

0 comments on commit 9040fff

Please sign in to comment.