summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>2023-07-06 11:54:02 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-07-06 12:59:41 +0200
commit5bc9ea070f7734a9b86c6f7f8e2ed4365229a6c1 (patch)
tree9d163a482797a6e219b7f2f9029020423922b334 /src/shared
parentHwdb: Add Sanwa Direct 400-MA128 external trackpad (#28272) (diff)
downloadsystemd-5bc9ea070f7734a9b86c6f7f8e2ed4365229a6c1.tar.xz
systemd-5bc9ea070f7734a9b86c6f7f8e2ed4365229a6c1.zip
treewide: fix "an" before consonant U sounds
The article "a" goes before consonant sounds and "an" goes before vowel sounds. This commit changes an to a for UKI, UDP, UTF-8, URL, UUID, U-Label, UI and USB, since they start with the sound /ˌjuː/.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ask-password-api.c2
-rw-r--r--src/shared/dns-domain.c4
-rw-r--r--src/shared/pretty-print.c2
-rw-r--r--src/shared/qrcode-util.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/ask-password-api.c b/src/shared/ask-password-api.c
index fe06f41814..6b2388e2c1 100644
--- a/src/shared/ask-password-api.c
+++ b/src/shared/ask-password-api.c
@@ -197,7 +197,7 @@ static int backspace_string(int ttyfd, const char *str) {
size_t m = utf8_n_codepoints(str);
if (m == SIZE_MAX)
m = strlen(str); /* Not a valid UTF-8 string? If so, let's backspace the number of bytes
- * output. Most likely this happened because we are not in an UTF-8 locale,
+ * output. Most likely this happened because we are not in a UTF-8 locale,
* and in that case that is the correct thing to do. And even if it's not,
* terminals tend to stop backspacing at the leftmost column, hence
* backspacing too much should be mostly OK. */
diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c
index 6b948c6b5e..7a2c5d60f4 100644
--- a/src/shared/dns-domain.c
+++ b/src/shared/dns-domain.c
@@ -301,7 +301,7 @@ int dns_label_apply_idna(const char *encoded, size_t encoded_size, char *decoded
assert(encoded);
assert(decoded);
- /* Converts an U-label into an A-label */
+ /* Converts a U-label into an A-label */
r = dlopen_idn();
if (r < 0)
@@ -353,7 +353,7 @@ int dns_label_undo_idna(const char *encoded, size_t encoded_size, char *decoded,
size_t w;
int r;
- /* To be invoked after unescaping. Converts an A-label into an U-label. */
+ /* To be invoked after unescaping. Converts an A-label into a U-label. */
assert(encoded);
assert(decoded);
diff --git a/src/shared/pretty-print.c b/src/shared/pretty-print.c
index 90f258f5bf..a354ae4983 100644
--- a/src/shared/pretty-print.c
+++ b/src/shared/pretty-print.c
@@ -42,7 +42,7 @@ int terminal_urlify(const char *url, const char *text, char **ret) {
assert(url);
- /* Takes an URL and a pretty string and formats it as clickable link for the terminal. See
+ /* Takes a URL and a pretty string and formats it as clickable link for the terminal. See
* https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda for details. */
if (isempty(text))
diff --git a/src/shared/qrcode-util.c b/src/shared/qrcode-util.c
index 4a33c28bf2..6d2cf58fa3 100644
--- a/src/shared/qrcode-util.c
+++ b/src/shared/qrcode-util.c
@@ -93,7 +93,7 @@ int print_qrcode(FILE *out, const char *header, const char *string) {
QRcode* qr;
int r;
- /* If this is not an UTF-8 system or ANSI colors aren't supported/disabled don't print any QR
+ /* If this is not a UTF-8 system or ANSI colors aren't supported/disabled don't print any QR
* codes */
if (!is_locale_utf8() || !colors_enabled())
return -EOPNOTSUPP;