]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
examples/url2file.c: corrected a comment
authorRickard Hallerbäck <riha@kvaser.com>
Fri, 20 Dec 2019 08:40:38 +0000 (09:40 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Dec 2019 10:05:38 +0000 (11:05 +0100)
The comment was confusing and suggested that setting CURLOPT_NOPROGRESS
to 0L would both enable and disable debug output at the same time, like
a Schrödinger's cat of CURLOPTs.

Closes #4745

docs/examples/url2file.c

index 1bede8c1831d0c3ac653782a0d42f627de8f4f07..099f0aee5b60068b92441a39b952313e8588c5e4 100644 (file)
@@ -57,7 +57,7 @@ int main(int argc, char *argv[])
   /* Switch on full protocol/debug output while testing */
   curl_easy_setopt(curl_handle, CURLOPT_VERBOSE, 1L);
 
-  /* disable progress meter, set to 0L to enable and disable debug output */
+  /* disable progress meter, set to 0L to enable it */
   curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L);
 
   /* send all data to this function  */