summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKerem Kat <katkerem@amazon.com>2021-10-26 17:06:13 +0000
committerDaniel Stenberg <daniel@haxx.se>2021-10-26 23:22:56 +0200
commitc40914dbdb2214e30f598bf88beca47f21d69ad8 (patch)
treeb1d2e60315cc232eb2130c7ffe1f972583e8b51e /docs
parent79104e4690c9b9a1c446896c197aba6eca28ee16 (diff)
downloadcurl-c40914dbdb2214e30f598bf88beca47f21d69ad8.tar.gz
docs: fix typo in CURLOPT_TRAILERFUNCTION example
Closes #7910
Diffstat (limited to 'docs')
-rw-r--r--docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.32
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 b/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3
index 07221977a..5ca44572a 100644
--- a/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3
+++ b/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3
@@ -66,7 +66,7 @@ HTTP
static int trailer_cb(struct curl_slist **tr, void *data)
{
/* libcurl will free the list */
- tr = curl_slist_append(*tr, "My-super-awesome-trailer: trailer-stuff");
+ *tr = curl_slist_append(*tr, "My-super-awesome-trailer: trailer-stuff");
return CURL_TRAILERFUNC_OK;
}