diff options
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 *); |
