Skip to content

Commit

Permalink
fix typo in the cache example test function name (#2238)
Browse files Browse the repository at this point in the history
Signed-off-by: Shuichiro Fukuoka <syumai@gmail.com>
  • Loading branch information
syumai committed Jun 8, 2024
1 parent 9995367 commit 981e71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 981e71d

Please sign in to comment.