From: Dave Reisner Date: Mon, 10 Sep 2018 13:39:33 +0000 (-0400) Subject: curl_url_set.3: properly escape \n in example code X-Git-Tag: curl-7_62_0~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1e5980f6672a2bd2d26894f093b435f2deb04e0;p=thirdparty%2Fcurl.git curl_url_set.3: properly escape \n in example code This yields "the scheme is %s\n" instead of "the scheme is %s0 Closes #2970 --- diff --git a/docs/libcurl/curl_url_get.3 b/docs/libcurl/curl_url_get.3 index b1313eae28..53f7954fea 100644 --- a/docs/libcurl/curl_url_get.3 +++ b/docs/libcurl/curl_url_get.3 @@ -97,7 +97,7 @@ If this function returns an error, no URL part is returned. char *scheme; rc = curl_url_get(url, CURLUPART_SCHEME, &scheme, 0); if(!rc) { - printf("the scheme is %s\n", scheme); + printf("the scheme is %s\\n", scheme); curl_free(scheme); } curl_url_cleanup(url);