aboutsummaryrefslogtreecommitdiff
path: root/docs/ref/api/misc.md
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-14 23:18:33 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-14 23:18:33 -0800
commitb4fdf7a04fc1018f1114fb8ee6f16009752cd16f (patch)
treec076e06ebda71da190b9031912bd3bb428bd8fed /docs/ref/api/misc.md
parenta7a2cdb0201a6e85caae621e748cfab03998b6a6 (diff)
downloadnng-b4fdf7a04fc1018f1114fb8ee6f16009752cd16f.tar.gz
nng-b4fdf7a04fc1018f1114fb8ee6f16009752cd16f.tar.bz2
nng-b4fdf7a04fc1018f1114fb8ee6f16009752cd16f.zip
socketpair: use nng_err
Diffstat (limited to 'docs/ref/api/misc.md')
-rw-r--r--docs/ref/api/misc.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/api/misc.md b/docs/ref/api/misc.md
index 4e7aec94..7c6b7005 100644
--- a/docs/ref/api/misc.md
+++ b/docs/ref/api/misc.md
@@ -17,10 +17,10 @@ number facilities when available.
## Create Socket Pair
```c
-int nng_socket_pair(int fds[2]);
+nng_err nng_socket_pair(int fds[2]);
```
-The `nng_socket_pair` function creates a pair of connected file descriptors.
+The {{i:`nng_socket_pair`}} function creates a pair of connected file descriptors.
These file descriptors, which are returned in the _fds_ array, are suitable for
use with the [Socket transport][socktran].