From: Daniel Stenberg Date: Tue, 28 Jun 2022 11:01:40 +0000 (+0200) Subject: curl_mime_data.3: polish the wording X-Git-Tag: curl-7_85_0~222 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ab4499552e0e754824d5ac93f931a283556503b;p=thirdparty%2Fcurl.git curl_mime_data.3: polish the wording Closes #9063 --- diff --git a/docs/libcurl/curl_mime_data.3 b/docs/libcurl/curl_mime_data.3 index 7d94a45540..24bc58bedf 100644 --- a/docs/libcurl/curl_mime_data.3 +++ b/docs/libcurl/curl_mime_data.3 @@ -34,12 +34,15 @@ CURLcode curl_mime_data(curl_mimepart *part, const char *data, .SH DESCRIPTION \fIcurl_mime_data(3)\fP sets a mime part's body content from memory data. -\fIdata\fP points to the data bytes: those are copied to the part and their -storage may safely be reused after call. -\fIdatasize\fP is the number of data bytes: it can be set to +\fIpart\fP is the mime part to assign contents to, created with +\fIcurl_mime_addpart(3)\fP. + +\fIdata\fP points to the data that gets copied by this function. The storage +may safely be reused after the call. + +\fIdatasize\fP is the number of bytes \fIdata\fP points to. It can be set to \fICURL_ZERO_TERMINATED\fP to indicate \fIdata\fP is a null-terminated character string. -\fIpart\fP is the part's to assign contents to. Setting a part's contents multiple times is valid: only the value set by the last call is retained. It is possible to unassign part's contents by setting