]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: nitpick grammar in comments/docs
author12932 <68835423+12932@users.noreply.github.com>
Tue, 11 Oct 2022 14:01:37 +0000 (22:01 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 12 Oct 2022 09:32:43 +0000 (11:32 +0200)
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

docs/examples/ftp-wildcard.c
docs/libcurl/curl_escape.3
lib/base64.c
lib/urlapi.c

index 63e1809710fea14e2a70c5397135407c40f2ad2f..9c1c913f1468bcba0fcdc0e3fb4070dd8dcc79ac 100644 (file)
@@ -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
index c54437688f14219c8aea3b79ee25737e89971ea1..58036f68fe57ba58a4edfc3c33a45ac92fcfcafe 100644 (file)
@@ -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).
index a9142541c912cc53fd1be5ec40e647da27bc00e8..52654c2bc334c16a572758727dc04b20b2f2110c 100644 (file)
@@ -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-_";
index 08c01d0899e73687d9b8fec941039d1d9b1b146f..736123527c11b02eb3a0a7132d77032deb1765a5 100644 (file)
@@ -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().
  */