aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2018-09-10 09:39:33 -0400
committerDaniel Stenberg <daniel@haxx.se>2018-09-13 08:07:36 +0200
commitc1e5980f6672a2bd2d26894f093b435f2deb04e0 (patch)
tree1948f219b2cf4df9cdb4a3274f0a8f744bb92073
parent04110573801feb2f278e2f774087a0525d5e8d0a (diff)
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.32
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);