From 9040fff0e182f5509f0431430a26ddfe35c51b2f Mon Sep 17 00:00:00 2001 From: Taction Date: Sat, 9 Apr 2022 18:47:52 +0800 Subject: [PATCH] fix typo in host func example (#449) Signed-off-by: zhangchao --- examples/host_func_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/host_func_test.go b/examples/host_func_test.go index ae43278921..683bccff73 100644 --- a/examples/host_func_test.go +++ b/examples/host_func_test.go @@ -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 {