From daeaefad17135f49f1dd81e37fdf5656c605ef45 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 3 Nov 2022 13:27:18 -0400 Subject: [PATCH] Everywhere: Clean up "the the" comment typos --- AK/URL.h | 2 +- Base/usr/share/man/man3/posix_spawn_file_actions_init.md | 2 +- Base/usr/share/man/man7/proc.md | 2 +- Base/usr/share/man/man7/sys.md | 2 +- Kernel/Arch/x86/i386/Boot/ap_setup.S | 4 ++-- Kernel/Arch/x86/x86_64/Boot/ap_setup.S | 4 ++-- Kernel/Graphics/DisplayConnector.cpp | 4 ++-- .../patches/0006-Set-default-options-for-SerenityOS.patch | 2 +- Userland/Applications/Spreadsheet/SpreadsheetView.cpp | 2 +- Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.cpp | 2 +- Userland/Libraries/LibMarkdown/CommentBlock.cpp | 2 +- Userland/Libraries/LibTLS/Certificate.cpp | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/AK/URL.h b/AK/URL.h index 3f24a80b1c98d9..31244bf17c226c 100644 --- a/AK/URL.h +++ b/AK/URL.h @@ -19,7 +19,7 @@ namespace AK { // NOTE: The member variables cannot contain any percent encoded sequences. -// The URL parser automatically decodes those sequences and the the serialize() method will re-encode them as necessary. +// The URL parser automatically decodes those sequences and the serialize() method will re-encode them as necessary. class URL { friend class URLParser; diff --git a/Base/usr/share/man/man3/posix_spawn_file_actions_init.md b/Base/usr/share/man/man3/posix_spawn_file_actions_init.md index 5d2c048361537e..4f44ba4f9ce036 100644 --- a/Base/usr/share/man/man3/posix_spawn_file_actions_init.md +++ b/Base/usr/share/man/man3/posix_spawn_file_actions_init.md @@ -21,7 +21,7 @@ int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t*, int fd, const ## Description -Configure a `posix_spawn_file_actions_t` object for use with [`posix_spawn`(2)](help://man/3/posix_spawn). This object can be used to let `posix_spawn()` set up file-related state for the spawned child process. The file actions are executed after creating the the new process but before loading its binary in the order they were added to the `posix_spawn_file_actions_t` object. +Configure a `posix_spawn_file_actions_t` object for use with [`posix_spawn`(2)](help://man/3/posix_spawn). This object can be used to let `posix_spawn()` set up file-related state for the spawned child process. The file actions are executed after creating the new process but before loading its binary in the order they were added to the `posix_spawn_file_actions_t` object. A `posix_spawn_file_actions_t` object is allocated on the stack but starts in an undefined state. diff --git a/Base/usr/share/man/man7/proc.md b/Base/usr/share/man/man7/proc.md index 97e505348761c1..4a100714f9a4c3 100644 --- a/Base/usr/share/man/man7/proc.md +++ b/Base/usr/share/man/man7/proc.md @@ -29,7 +29,7 @@ will not create a corrupted data from that data node, a read operation alone wil not inquire the kernel to refresh the data. To keep data output being refreshed, the userland has to re-open the data node with a new file descriptor, or to perform the `lseek` syscall on the open file descriptor to -reset the the offset to 0. +reset the offset to 0. ## See also diff --git a/Base/usr/share/man/man7/sys.md b/Base/usr/share/man/man7/sys.md index 539cee1e614fc2..87f9c97195f6ca 100644 --- a/Base/usr/share/man/man7/sys.md +++ b/Base/usr/share/man/man7/sys.md @@ -83,7 +83,7 @@ will not create a corrupted data from that data node, a read operation alone wil not inquire the kernel to refresh the data. To keep data output being refreshed, the userland has to re-open the data node with a new file descriptor, or to perform the `lseek` syscall on the open file descriptor to -reset the the offset to 0. +reset the offset to 0. ## See also diff --git a/Kernel/Arch/x86/i386/Boot/ap_setup.S b/Kernel/Arch/x86/i386/Boot/ap_setup.S index a71b6a9ad64798..915a1ad4c2528b 100644 --- a/Kernel/Arch/x86/i386/Boot/ap_setup.S +++ b/Kernel/Arch/x86/i386/Boot/ap_setup.S @@ -8,8 +8,8 @@ will boot the AP from in real mode. This code also contains space for special variables that *must* remain here. When initializing the APIC, the code here gets copied to P0x00008000, the variables in here get - populated and then the the boot of the APs will be triggered. Having - the variables here allows us to access them from real mode. Also, the + populated and then the boot of the APs will be triggered. + Having the variables here allows us to access them from real mode. Also, the code here avoids the need for relocation entries. Basically, the variables between apic_ap_start and end_apic_ap_start diff --git a/Kernel/Arch/x86/x86_64/Boot/ap_setup.S b/Kernel/Arch/x86/x86_64/Boot/ap_setup.S index 3f27ed51c7b792..958166f56a9f69 100644 --- a/Kernel/Arch/x86/x86_64/Boot/ap_setup.S +++ b/Kernel/Arch/x86/x86_64/Boot/ap_setup.S @@ -19,8 +19,8 @@ code64_sel: will boot the AP from in real mode. This code also contains space for special variables that *must* remain here. When initializing the APIC, the code here gets copied to P0x00008000, the variables in here get - populated and then the the boot of the APs will be triggered. Having - the variables here allows us to access them from real mode. Also, the + populated and then the boot of the APs will be triggered. + Having the variables here allows us to access them from real mode. Also, the code here avoids the need for relocation entries. Basically, the variables between apic_ap_start and end_apic_ap_start diff --git a/Kernel/Graphics/DisplayConnector.cpp b/Kernel/Graphics/DisplayConnector.cpp index af230e9bbb967f..b358eda0e01c7e 100644 --- a/Kernel/Graphics/DisplayConnector.cpp +++ b/Kernel/Graphics/DisplayConnector.cpp @@ -284,8 +284,8 @@ ErrorOr DisplayConnector::ioctl(OpenFileDescription&, unsigned request, Us SpinlockLocker locker(m_responsible_process_lock); auto process = m_responsible_process.strong_ref(); // Note: If there's already a process being responsible, just return an error. - // We could technically return 0 if the the requesting process is already - // was set to be responsible for this DisplayConnector, but it servicing no + // We could technically return 0 if the requesting process was already + // set to be responsible for this DisplayConnector, but it services // no good purpose and should be considered a bug if this happens anyway. if (process) return Error::from_errno(EPERM); diff --git a/Ports/RetroArch/patches/0006-Set-default-options-for-SerenityOS.patch b/Ports/RetroArch/patches/0006-Set-default-options-for-SerenityOS.patch index f66a6c8f3eb4cd..9c9009ea3bc183 100644 --- a/Ports/RetroArch/patches/0006-Set-default-options-for-SerenityOS.patch +++ b/Ports/RetroArch/patches/0006-Set-default-options-for-SerenityOS.patch @@ -659,7 +659,7 @@ index 0000000..088e883 +# Alternatively, all hotkeys for keyboard could be disabled by the user. +# input_enable_hotkey_btn = + -+# Adds a delay in frames before the assigned hotkey blocks input. Useful if the the ++# Adds a delay in frames before the assigned hotkey blocks input. Useful if the +# hotkey input is mapped to another action. +# input_hotkey_block_delay = "5" + diff --git a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp index ff36a3eccc7f0e..e5b7ab34a5b5ff 100644 --- a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp +++ b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp @@ -202,7 +202,7 @@ void InfinitelyScrollableTableView::mousemove_event(GUI::MouseEvent& event) void InfinitelyScrollableTableView::mousedown_event(GUI::MouseEvent& event) { - // Override the mouse event so that the the cell that is 'clicked' is not + // Override the mouse event so that the cell that is 'clicked' is not // the one right beneath the cursor but instead the one that is referred to // when m_is_hovering_cut_zone as it can be the case that the user is targeting // a cell yet be outside of its bounding box due to the select_padding. diff --git a/Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.cpp b/Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.cpp index 35a66401aab7ef..310009d4e8f760 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.cpp @@ -301,7 +301,7 @@ ThrowCompletionOr get_duration_unit_options(VM& vm, String // FIXME: LibUnicode currently only exposes unit patterns converted to an ECMA402 NumberFormat-specific format, // since DurationFormat only needs a tiny subset of it, it's much easier to just convert it to the expected format -// here, but at some point we should split the the NumberFormat exporter to export both formats of the data. +// here, but at some point we should split the NumberFormat exporter to export both formats of the data. static String convert_number_format_pattern_to_duration_format_template(::Locale::NumberFormat const& number_format) { auto result = number_format.zero_format.replace("{number}"sv, "{0}"sv, ReplaceMode::FirstOnly); diff --git a/Userland/Libraries/LibMarkdown/CommentBlock.cpp b/Userland/Libraries/LibMarkdown/CommentBlock.cpp index 49aeabd2c97f1d..84f60cca2d1e15 100644 --- a/Userland/Libraries/LibMarkdown/CommentBlock.cpp +++ b/Userland/Libraries/LibMarkdown/CommentBlock.cpp @@ -53,7 +53,7 @@ OwnPtr CommentBlock::parse(LineIterator& lines) StringBuilder builder; while (true) { - // Invariant: At the beginning of the loop, `line` is valid and should be added the the builder. + // Invariant: At the beginning of the loop, `line` is valid and should be added to the builder. bool ends_here = line.ends_with(comment_end); if (ends_here) line = line.substring_view(0, line.length() - comment_end.length()); diff --git a/Userland/Libraries/LibTLS/Certificate.cpp b/Userland/Libraries/LibTLS/Certificate.cpp index 825230e45ee6a0..b5cce14b8642fe 100644 --- a/Userland/Libraries/LibTLS/Certificate.cpp +++ b/Userland/Libraries/LibTLS/Certificate.cpp @@ -192,7 +192,7 @@ Optional Certificate::parse_asn1(ReadonlyBytes buffer, bool) // AttributeType ::= ObjectIdentifier // AttributeValue ::= Any while (!decoder.eof()) { - // Parse only the the required fields, and ignore the rest. + // Parse only the required fields, and ignore the rest. ENTER_SCOPE_OR_FAIL(Set, "Certificate::TBSCertificate::issuer/subject::$::RelativeDistinguishedName"); while (!decoder.eof()) { ENTER_SCOPE_OR_FAIL(Sequence, "Certificate::TBSCertificate::issuer/subject::$::RelativeDistinguishedName::$::AttributeTypeAndValue");