aboutsummaryrefslogtreecommitdiff
path: root/docs/man/nng_msg_header_trim.3.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/man/nng_msg_header_trim.3.adoc')
-rw-r--r--docs/man/nng_msg_header_trim.3.adoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/man/nng_msg_header_trim.3.adoc b/docs/man/nng_msg_header_trim.3.adoc
index dae56184..39d8052e 100644
--- a/docs/man/nng_msg_header_trim.3.adoc
+++ b/docs/man/nng_msg_header_trim.3.adoc
@@ -27,7 +27,7 @@ int nng_msg_header_trim_u32(nng_msg *msg, uint32_t *val32);
== DESCRIPTION
The `nng_msg_header_trim()` and `nng_msg_header_trim_u32()` functions remove
-data from the start of the header of message _msg_.
+data from the start of the header of message _msg_.
The first function removes _size_ bytes.
The second function removes 4 bytes, and stores them in the value _val32_,
after converting them from network-byte order (big-endian) to native
@@ -39,10 +39,12 @@ This function returns 0 on success, and non-zero otherwise.
== ERRORS
+[horizontal]
`NNG_EINVAL`:: The message header is too short to remove the requested data.
== SEE ALSO
+[.text-left]
<<nng_msg_alloc.3#,nng_msg_alloc(3)>>,
<<nng_msg_header.3#,nng_msg_header(3)>>,
<<nng_msg_header_append.3#,nng_msg_header_append(3)>>,