From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Sun, 19 Sep 2021 13:25:48 +0000 (+0000) Subject: misc: fix typos in docs and comments X-Git-Tag: curl-7_80_0~195 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cf5e8e70ef1fd1548bf19ee5419c9f27acfee43;p=thirdparty%2Fcurl.git misc: fix typos in docs and comments No user facing output from curl/libcurl is changed by this, just comments. Closes #7747 --- diff --git a/docs/KNOWN_BUGS b/docs/KNOWN_BUGS index ed944fb3e2..b4ad169bdc 100644 --- a/docs/KNOWN_BUGS +++ b/docs/KNOWN_BUGS @@ -1018,7 +1018,7 @@ problems may have been fixed or changed somewhat since this was written! 15.4 build docs/curl.1 - The cmake build doesn't create the docs/curl.1 file and therefor must rely on + The cmake build doesn't create the docs/curl.1 file and therefore must rely on it being there already. This makes the --manual option not work and test cases like 1139 can't function. diff --git a/docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.3 b/docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.3 index 8a06d6c5b7..d061d78468 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.3 +++ b/docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.3 @@ -22,7 +22,7 @@ .\" .TH CURLOPT_SSL_ENABLE_ALPN 3 "19 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options" .SH NAME -CURLOPT_SSL_ENABLE_ALPN \- Application Layer Protocol Negotation +CURLOPT_SSL_ENABLE_ALPN \- Application Layer Protocol Negotiation .SH SYNOPSIS #include diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index 4a2488720e..a5ee8bbe26 100644 --- a/lib/curl_sasl.c +++ b/lib/curl_sasl.c @@ -272,7 +272,7 @@ static CURLcode build_message(struct Curl_easy *data, struct bufref *msg) char *base64; size_t base64len; - if(!Curl_bufref_ptr(msg)) /* Empty mesage. */ + if(!Curl_bufref_ptr(msg)) /* Empty message. */ Curl_bufref_set(msg, "", 0, NULL); else if(!Curl_bufref_len(msg)) /* Explicit empty response. */ Curl_bufref_set(msg, "=", 1, NULL); diff --git a/lib/http_aws_sigv4.c b/lib/http_aws_sigv4.c index 02663abd63..8b87e1f08d 100644 --- a/lib/http_aws_sigv4.c +++ b/lib/http_aws_sigv4.c @@ -321,7 +321,7 @@ CURLcode Curl_output_aws_sigv4(struct Curl_easy *data, bool proxy) /* * Google allow to use rsa key instead of HMAC, so this code might change - * In the furure, but for now we support only HMAC version + * In the future, but for now we support only HMAC version */ str_to_sign = curl_maprintf("%s4-HMAC-SHA256\n" /* Algorithm */ "%s\n" /* RequestDateTime */ diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 58489abec1..ef403d7f45 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -207,7 +207,7 @@ static void connect_done(struct Curl_easy *data) Curl_dyn_free(&s->rcvbuf); Curl_dyn_free(&s->req); - /* retore the protocol pointer */ + /* restore the protocol pointer */ data->req.p.http = s->prot_save; s->prot_save = NULL; infof(data, "CONNECT phase completed!"); diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 1e1827fc13..73ba8f5374 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -1430,7 +1430,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */ char *enc = curl_easy_escape(NULL, postdata, (int)size); Curl_safefree(postdata); /* no matter if it worked or not */ if(enc) { - /* replace (in-place) '%20' by '+' acording to RFC1866 */ + /* replace (in-place) '%20' by '+' according to RFC1866 */ size_t enclen = replace_url_encoded_space_by_plus(enc); /* now make a string with the name from above and append the encoded string */