fix typo in the cache example test function name (#2238)

Signed-off-by: Shuichiro Fukuoka <syumai@gmail.com>
This commit is contained in:
syumai
2024-06-08 16:04:21 +09:00
committed by GitHub
parent 99953679fd
commit 981e71dba6

View File

@@ -47,7 +47,7 @@ func newCompilationCacheWithDir(cacheDir string) wazero.CompilationCache {
return cache
}
// newRuntimeCompileDestroy creates a new wazero.Runtime, compile a binary, and then delete the runtime.
// newRuntimeCompileClose creates a new wazero.Runtime, compile a binary, and then delete the runtime.
func newRuntimeCompileClose(ctx context.Context, config wazero.RuntimeConfig) {
r := wazero.NewRuntimeWithConfig(ctx, config)
defer r.Close(ctx) // This closes everything this Runtime created except the file system cache.