diff options
author | Dave Reisner <dreisner@archlinux.org> | 2018-09-10 09:39:33 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-13 08:07:36 +0200 |
commit | c1e5980f6672a2bd2d26894f093b435f2deb04e0 (patch) | |
tree | 1948f219b2cf4df9cdb4a3274f0a8f744bb92073 | |
parent | 04110573801feb2f278e2f774087a0525d5e8d0a (diff) | |
download | curl-c1e5980f6672a2bd2d26894f093b435f2deb04e0.tar.gz |
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
-rw-r--r-- | docs/libcurl/curl_url_get.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/libcurl/curl_url_get.3 b/docs/libcurl/curl_url_get.3 index b1313eae2..53f7954fe 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); |