From: 12932 <68835423+12932@users.noreply.github.com> Date: Tue, 11 Oct 2022 14:01:37 +0000 (+0800) Subject: misc: nitpick grammar in comments/docs X-Git-Tag: curl-7_86_0~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddeec8feba84dc4162191364c1e486cb92488f10;p=thirdparty%2Fcurl.git misc: nitpick grammar in comments/docs because the 'u' in URL is actually a consonant *sound* it is only correct to write "a URL" sorry this is a bit nitpicky :P https://english.stackexchange.com/questions/152/when-should-i-use-a-vs-an https://www.techtarget.com/whatis/feature/Which-is-correct-a-URL-or-an-URL Closes #9699 --- diff --git a/docs/examples/ftp-wildcard.c b/docs/examples/ftp-wildcard.c index 63e1809710..9c1c913f14 100644 --- a/docs/examples/ftp-wildcard.c +++ b/docs/examples/ftp-wildcard.c @@ -79,7 +79,7 @@ int main(int argc, char **argv) /* curl_easy_setopt(handle, CURLOPT_VERBOSE, 1L); */ - /* set an URL containing wildcard pattern (only in the last part) */ + /* set a URL containing wildcard pattern (only in the last part) */ if(argc == 2) curl_easy_setopt(handle, CURLOPT_URL, argv[1]); else diff --git a/docs/libcurl/curl_escape.3 b/docs/libcurl/curl_escape.3 index c54437688f..58036f68fe 100644 --- a/docs/libcurl/curl_escape.3 +++ b/docs/libcurl/curl_escape.3 @@ -33,7 +33,7 @@ char *curl_escape(const char *url, int length); .SH DESCRIPTION Obsolete function. Use \fIcurl_easy_escape(3)\fP instead! -This function will convert the given input string to an URL encoded string and +This function will convert the given input string to a URL encoded string and return that as a new allocated string. All input characters that are not a-z, A-Z or 0-9 will be converted to their "URL escaped" version (\fB%NN\fP where \fBNN\fP is a two-digit hexadecimal number). diff --git a/lib/base64.c b/lib/base64.c index a9142541c9..52654c2bc3 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -47,7 +47,7 @@ static const char base64[]= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; -/* The Base 64 encoding with an URL and filename safe alphabet, RFC 4648 +/* The Base 64 encoding with a URL and filename safe alphabet, RFC 4648 section 5 */ static const char base64url[]= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; diff --git a/lib/urlapi.c b/lib/urlapi.c index 08c01d0899..736123527c 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -116,7 +116,7 @@ static const char *find_host_sep(const char *url) } /* - * Decide in an encoding-independent manner whether a character in an + * Decide in an encoding-independent manner whether a character in a * URL must be escaped. The same criterion must be used in strlen_url() * and strcpy_url(). */