aboutsummaryrefslogtreecommitdiff
path: root/docs/ref/api/init.md
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 /docs/ref/api/init.md
parent1323aece0712522ccb2bf432b5085889a3513fa8 (diff)
downloadnng-4e1ffdca6d97c1bddc460835c94b16bc64284861.tar.gz
nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.tar.bz2
nng-4e1ffdca6d97c1bddc460835c94b16bc64284861.zip
Fix typos across docs, comments, and CMake
Diffstat (limited to 'docs/ref/api/init.md')
-rw-r--r--docs/ref/api/init.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/api/init.md b/docs/ref/api/init.md
index e26b2904..e0eedb5b 100644
--- a/docs/ref/api/init.md
+++ b/docs/ref/api/init.md
@@ -1,7 +1,7 @@
# Initialization & Finalization
This chapter details the function used to initialize
-the library before first use, and the funtion used to
+the library before first use, and the function used to
finalize the library and deallocate any resources used by the library.
## Initialization
@@ -17,7 +17,7 @@ typedef struct {
int16_t num_resolver_threads;
} nng_init_params;
-extern nng_err nng_init(nng_init_parms *params);
+extern nng_err nng_init(nng_init_params *params);
```
Before using other interfaces in this library, it is necessary to initialize
@@ -52,7 +52,7 @@ The following parameters are present:
- `num_task_threads` and `max_task_threads` \
Configures the number of threads to use for tasks, which are used principally for completion
callbacks. The maximum value can be used to provide an upper limit while still allowing
- for a dynamically calculated value to be used, as long as it does not exceeed the maximum.
+ for a dynamically calculated value to be used, as long as it does not exceed the maximum.
- `num_expire_threads` and `max_expire_threads` \
Configures the number of threads used for expiring operations. Using a larger value will
@@ -71,7 +71,7 @@ The following parameters are present:
extern void nng_fini(void);
```
-When the consumer is ready to deallocate any resoures allocated by the library, it should call
+When the consumer is ready to deallocate any resources allocated by the library, it should call
the {{i:`nng_fini`}} function. Each call to `nng_fini` should be paired with an earlier call to
[`nng_init`].