fix typo in host func example (#449)

Signed-off-by: zhangchao <zchao9100@gmail.com>
This commit is contained in:
Taction
2022-04-09 18:47:52 +08:00
committed by GitHub
parent 2577ec9863
commit 9040fff0e1

View File

@@ -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 {