fix: correct typos and improve comments across multiple files by codespell (#4116)

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2025-03-07 08:21:54 +08:00
committed by GitHub
parent 73998e4c85
commit 412631ac13
108 changed files with 215 additions and 215 deletions

View File

@ -47,7 +47,7 @@ libc_wasi_print_help(void)
"--map-dir=<guest-path2::host-path2>\n");
printf(" --addr-pool=<addrs> Grant wasi access to the given network "
"addresses in\n");
printf(" CIDR notation to the program, seperated "
printf(" CIDR notation to the program, separated "
"with ',',\n");
printf(" for example:\n");
printf(" --addr-pool=1.2.3.4/15,2.3.4.5/16\n");

View File

@ -153,7 +153,7 @@ enclave_init(sgx_enclave_id_t *p_eid)
return 0;
}
/* reopen the file with write capablity */
/* reopen the file with write capability */
fp = freopen(token_path, "wb", fp);
if (fp == NULL)
return 0;
@ -228,7 +228,7 @@ print_help()
printf(" to the program, for example:\n");
printf(" --dir=<dir1> --dir=<dir2>\n");
printf(" --addr-pool= Grant wasi access to the given network addresses in\n");
printf(" CIDR notation to the program, seperated with ',',\n");
printf(" CIDR notation to the program, separated with ',',\n");
printf(" for example:\n");
printf(" --addr-pool=1.2.3.4/15,2.3.4.5/16\n");
printf(" --max-threads=n Set maximum thread number per cluster, default is 4\n");

View File

@ -67,7 +67,7 @@ struct wamr_pal_create_process_args {
// Mandatory field. Must not be NULL.
const char *path;
// Argments array pass to new process.
// Arguments array pass to new process.
//
// The arguments to the command. By convention, the argv[0] should be the
// program name. And the last element of the array must be NULL to indicate

View File

@ -200,7 +200,7 @@ set(WAMR_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../..)
# enable WAMR build system
include(${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)
# NuttX wamr lib complie required: `WAMR_SOURCES` `WAMR_CFLAGS` `WAMR_INCDIRS`
# NuttX wamr lib compile required: `WAMR_SOURCES` `WAMR_CFLAGS` `WAMR_INCDIRS`
# `WAMR_DEFINITIONS`
set(WAMR_SOURCES ${WAMR_RUNTIME_LIB_SOURCE})
set(WAMR_CFLAGS -Wno-shadow -Wno-unused-variable

View File

@ -22,7 +22,7 @@ QUIET ?= 1
ARCHIVES += $(BINDIR)/libwamr.a
#Load the usual RIOT make infastructure
#Load the usual RIOT make infrastructure
include $(RIOTBASE)/Makefile.include

View File

@ -395,7 +395,7 @@ iwasm(int argc, char **argv)
else {
exception = app_instance_main(wasm_module_inst, argc - i_arg_begin,
&argv[i_arg_begin]);
rt_kprintf("finshed run app_instance_main\n");
rt_kprintf("finished run app_instance_main\n");
}
if (exception)
@ -448,4 +448,4 @@ fail1:
wasm_runtime_destroy();
return 0;
}
MSH_CMD_EXPORT(iwasm, Embeded VM of WebAssembly);
MSH_CMD_EXPORT(iwasm, Embedded VM of WebAssembly);

View File

@ -47,9 +47,9 @@ to setup for local development.
## Building for a Specific Board
With an environment setup either locally or in a Docker container, you can build
for a Zephyr suppported board using
for a Zephyr supported board using
[`west`](https://docs.zephyrproject.org/latest/develop/west/index.html). There
are already [configuaration files](./boards) for a few boards in this sample.
are already [configuration files](./boards) for a few boards in this sample.
However, if you are using a new board, you will need to add your own file for
the board, or define configuration in the [`prj.conf](./prj.conf). After doing
so, use the following command with your board identifier to build the sample