Fix some spelling issues (#3385)

Fix some of the spelling issues found by CSpell.
This commit is contained in:
Benbuck Nason
2024-05-05 16:56:48 -07:00
committed by GitHub
parent c0e33f08b0
commit ca61184ced
31 changed files with 102 additions and 99 deletions

View File

@ -38,7 +38,7 @@ module_reader_callback(package_type_t module_type, const char *module_name,
}
static void
moudle_destroyer(uint8 *buffer, uint32 size)
module_destroyer_callback(uint8 *buffer, uint32 size)
{
if (!buffer) {
return;
@ -89,7 +89,8 @@ main(int argc, char *argv[])
#if WASM_ENABLE_MULTI_MODULE != 0
printf("- wasm_runtime_set_module_reader\n");
/* set module reader and destroyer */
wasm_runtime_set_module_reader(module_reader_callback, moudle_destroyer);
wasm_runtime_set_module_reader(module_reader_callback,
module_destroyer_callback);
#endif
/* load WASM byte buffer from WASM bin file */
@ -163,7 +164,7 @@ UNLOAD_MODULE:
printf("- wasm_runtime_unload\n");
wasm_runtime_unload(module);
RELEASE_BINARY:
moudle_destroyer(file_buf, file_buf_size);
module_destroyer_callback(file_buf, file_buf_size);
RELEASE_RUNTIME:
printf("- wasm_runtime_destroy\n");
wasm_runtime_destroy();