aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormochalins <117967760+mochalins@users.noreply.github.com>2025-05-23 17:02:52 +0900
committerGarrett D'Amore <garrett@damore.org>2025-06-02 07:24:06 -0700
commit4e1ffdca6d97c1bddc460835c94b16bc64284861 (patch)
tree80c27b0e509c8d7001619af27a33794f4bcad3c4 /include
parent1323aece0712522ccb2bf432b5085889a3513fa8 (diff)
downloadnng-4e1ffdca6d97c1bddc460835c94b16bc64284861.tar.gz
nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.tar.bz2
nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.zip
Fix typos across docs, comments, and CMake
Diffstat (limited to 'include')
-rw-r--r--include/nng/http.h2
-rw-r--r--include/nng/nng.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/include/nng/http.h b/include/nng/http.h
index 1ff541ac..08099cbe 100644
--- a/include/nng/http.h
+++ b/include/nng/http.h
@@ -214,7 +214,7 @@ typedef struct nng_http_handler nng_http_handler;
// nng_http_handler_alloc creates a server handler object, for the supplied
// absolute URI (path only) with the callback. By default the handler
-// is assumed to handle only GET requests (and implictly HEAD requests
+// is assumed to handle only GET requests (and implicitly HEAD requests
// as well.)
//
// Note that methods which modify a handler cannot be called while the handler
diff --git a/include/nng/nng.h b/include/nng/nng.h
index b3f9e461..a71a3f53 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -305,7 +305,7 @@ NNG_DECL int nng_socket_raw(nng_socket id, bool *rawp);
// Utility function for getting a printable form of the socket address
// for display in logs, etc. It is not intended to be parsed, and the
-// display format may change without notice. Generally you should alow
+// display format may change without notice. Generally you should allow
// at least NNG_MAXADDRSTRLEN if you want to avoid typical truncations.
// It is still possible for very long IPC paths to be truncated, but that
// is an edge case and applications that pass such long paths should
@@ -315,7 +315,7 @@ NNG_DECL const char *nng_str_sockaddr(
const nng_sockaddr *sa, char *buf, size_t bufsz);
// Obtain a port number (for NNG_AF_INET and NNG_AF_INET6this will be 16 bits
-// maximum, but other address familiies may have larger port numbers.) For
+// maximum, but other address families may have larger port numbers.) For
// address that don't have the concept of port numbers, zero will be returned.
NNG_DECL uint32_t nng_sockaddr_port(const nng_sockaddr *sa);
@@ -1317,7 +1317,7 @@ typedef struct {
// only the first call can contain a non-NULL params. If already
// initialized with non-NULL params, will return NNG_EALREADY.
// Applications should *not* call a matching nng_fini() in that case.
-NNG_DECL nng_err nng_init(const nng_init_params *parms);
+NNG_DECL nng_err nng_init(const nng_init_params *params);
// nng_fini is used to terminate the library, freeing certain global resources.
// Each call to nng_fini is paired to a call to nng_init. The last such
@@ -1365,7 +1365,7 @@ typedef enum nng_log_facility {
// as above. The message ID is chosen by the submitter - internal NNG
// messages will have MSGIDs starting with "NNG-". The MSGID should be
// not more than 8 characters, though this is not a hard requirement.
-// Loggers are required ot make a copy of the msgid and message if required,
+// Loggers are required to make a copy of the msgid and message if required,
// because the values will not be valid once the logger returns.
typedef void (*nng_logger)(nng_log_level level, nng_log_facility facility,
const char *msgid, const char *msg);