docs: fix typo in CURLOPT_TRAILERFUNCTION example

Closes #7910
This commit is contained in:
Kerem Kat 2021-10-26 17:06:13 +00:00 committed by Daniel Stenberg
parent 79104e4690
commit c40914dbdb
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;
}