diff options
| author | mochalins <117967760+mochalins@users.noreply.github.com> | 2025-05-23 17:02:52 +0900 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-06-02 07:24:06 -0700 |
| commit | 4e1ffdca6d97c1bddc460835c94b16bc64284861 (patch) | |
| tree | 80c27b0e509c8d7001619af27a33794f4bcad3c4 /src/core | |
| parent | 1323aece0712522ccb2bf432b5085889a3513fa8 (diff) | |
| download | nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.tar.gz nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.tar.bz2 nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.zip | |
Fix typos across docs, comments, and CMake
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file.h | 2 | ||||
| -rw-r--r-- | src/core/sockaddr.c | 2 | ||||
| -rw-r--r-- | src/core/socket.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file.h b/src/core/file.h index f89b1729..724b9d35 100644 --- a/src/core/file.h +++ b/src/core/file.h @@ -82,7 +82,7 @@ extern const char *nni_file_basename(const char *); // false if an error occurs, or the path references something else. extern bool nni_file_is_file(const char *); -// nni_file_is_dir returns true if the path references a directroy. It returns +// nni_file_is_dir returns true if the path references a directory. It returns // false if an error occurs, or the path references something else. extern bool nni_file_is_dir(const char *); diff --git a/src/core/sockaddr.c b/src/core/sockaddr.c index 15842b82..9dbb1c6c 100644 --- a/src/core/sockaddr.c +++ b/src/core/sockaddr.c @@ -87,7 +87,7 @@ nni_inet_ntop(const uint8_t addr[16], char buf[46]) idx += 2; sep = false; } else if (i < maxoff || i >= maxoff + maxcnt) { - // this takes at most six bytes -- four hax digits a + // this takes at most six bytes -- four hex digits a // colon, and a null NNI_ASSERT(idx <= 40); snprintf(buf + idx, 6, sep ? ":%x" : "%x", diff --git a/src/core/socket.h b/src/core/socket.h index d84f22c2..f18a4e15 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -89,7 +89,7 @@ extern void *nni_ctx_proto_data(nni_ctx *); // by the context is also released. extern void nni_ctx_rele(nni_ctx *); -// nni_ctx_close is used to close the context. It also implictly releases +// nni_ctx_close is used to close the context. It also implicitly releases // the context. extern void nni_ctx_close(nni_ctx *); |
