aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/url2file.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/url2file.c')
-rw-r--r--docs/examples/url2file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/url2file.c b/docs/examples/url2file.c
index 64d27c88f..adf696c9a 100644
--- a/docs/examples/url2file.c
+++ b/docs/examples/url2file.c
@@ -63,9 +63,8 @@ int main(int argc, char *argv[])
pagefile = fopen(pagefilename, "wb");
if (pagefile) {
- /* write the page body to this file handle. CURLOPT_FILE is also known as
- CURLOPT_WRITEDATA*/
- curl_easy_setopt(curl_handle, CURLOPT_FILE, pagefile);
+ /* write the page body to this file handle */
+ curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, pagefile);
/* get it! */
curl_easy_perform(curl_handle);