aboutsummaryrefslogtreecommitdiff
path: root/docs/nng_close.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/nng_close.adoc')
-rw-r--r--docs/nng_close.adoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/nng_close.adoc b/docs/nng_close.adoc
index 9a582f83..58f31f83 100644
--- a/docs/nng_close.adoc
+++ b/docs/nng_close.adoc
@@ -11,7 +11,7 @@
== NAME
-nng_close - close a socket
+nng_close - close socket
== SYNOPSIS
@@ -19,12 +19,12 @@ nng_close - close a socket
-----------
#include <nng/nng.h>
-int nng_close(int s);
+int nng_close(nng_socket s);
-----------
== DESCRIPTION
-The `nng_close()` function closes the supplied socket, 's'. Messages
+The `nng_close()` function closes the supplied socket, _s_. Messages
that have been submitted for sending may be flushed or delivered,
depending upon the transport and the setting of the `NNG_OPT_LINGER`
option.
@@ -39,7 +39,7 @@ This function returns 0 on success, and non-zero otherwise.
== ERRORS
-`NNG_EBADF`:: The socket is already closed or was never opened.
+`NNG_EBADF`:: The socket _s_ is already closed or was never opened.
== SEE ALSO