Skip to content

Commit

Permalink
Everywhere: Clean up "the the" comment typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nico authored and linusg committed Nov 3, 2022
1 parent b820b9b commit daeaefa
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion AK/URL.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion Base/usr/share/man/man3/posix_spawn_file_actions_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://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:https://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.

Expand Down
2 changes: 1 addition & 1 deletion Base/usr/share/man/man7/proc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Base/usr/share/man/man7/sys.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Kernel/Arch/x86/i386/Boot/ap_setup.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Kernel/Arch/x86/x86_64/Boot/ap_setup.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Kernel/Graphics/DisplayConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ ErrorOr<void> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
+
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Spreadsheet/SpreadsheetView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ ThrowCompletionOr<DurationUnitOptions> 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);
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibMarkdown/CommentBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ OwnPtr<CommentBlock> 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());
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibTLS/Certificate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Optional<Certificate> 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");
Expand Down

0 comments on commit daeaefa

Please sign in to comment.