docs: fix function typo in curl_easy_option_next.3

Closes #12170
This commit is contained in:
rilysh 2023-10-20 14:57:12 -04:00 committed by Daniel Stenberg
parent 8d3ce930f8
commit 276ffedec2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -70,10 +70,10 @@ name is provided for backwards compatibility as an alias.
.nf
/* iterate over all available options */
const struct curl_easyoption *opt;
opt = curl_easy_option_by_next(NULL);
opt = curl_easy_option_next(NULL);
while(opt) {
printf("Name: %s\\n", opt->name);
opt = curl_easy_option_by_next(opt);
opt = curl_easy_option_next(opt);
}
.fi
.SH AVAILABILITY