Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Everywhere: Fix a few comment typos #15990

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AK/StringFloatingPointConversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace AK {

// This entire algorithm is an implementation of the paper: Ryu: Fast Float-to-String Conversion
// by Ulf Adams, available at https://dl.acm.org/doi/pdf/10.1145/3192366.3192369 and an implemenetation
// by Ulf Adams, available at https://dl.acm.org/doi/pdf/10.1145/3192366.3192369 and an implementation
// at https://github.com/ulfjack/ryu . A lot of possible mistakes from the article were corrected, see
// discussion at https://github.com/SerenityOS/serenity/pull/15796 .
//
Expand Down
2 changes: 1 addition & 1 deletion Userland/Games/Flood/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static ErrorOr<Vector<Color>> get_color_scheme_from_string(StringView name)
}

// FIXME: Improve this AI.
// Currently, this AI always chooses a move that gets the most cells flooded immidiately.
// Currently, this AI always chooses a move that gets the most cells flooded immediately.
// This far from being able to generate an optimal solution, and is something that needs to be improved
// if a user-facing auto-solver is implemented or a harder difficulty is wanted.
// A fairly simple way to improve this would be to test deeper moves and then choose the most efficient sequence.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace JS {

// https://github.com/tc39/proposal-regexp-legacy-features#regexp
// The %RegExp% instrinsic object, which is the builtin RegExp constructor, has the following additional internal slots:
// The %RegExp% intrinsic object, which is the builtin RegExp constructor, has the following additional internal slots:
nico marked this conversation as resolved.
Show resolved Hide resolved
// [[RegExpInput]]
// [[RegExpLastMatch]]
// [[RegExpLastParen]]
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibVideo/VP9/Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ DecoderErrorOr<void> Decoder::predict_intra(u8 plane, u32 x, u32 y, bool have_le
// - [0]
// - [1 .. block_size]
// - [block_size + 1 .. block_size * 2]
// The array indices must be offset by 1 to accomodate index -1.
// The array indices must be offset by 1 to accommodate index -1.
Vector<Intermediate>& above_row = m_buffers.above_row;
DECODER_TRY_ALLOC(above_row.try_resize_and_keep_capacity(block_size * 2 + 1));
auto above_row_at = [&](i32 index) -> Intermediate& {
Expand Down
4 changes: 2 additions & 2 deletions Userland/Libraries/LibWeb/HTML/NavigatorID.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class NavigatorIDMixin {
String product() const { return "Gecko"sv; }

// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-productsub
String product_sub() const { return "20030107"sv; } // Compatability mode "Chrome"
String product_sub() const { return "20030107"sv; } // Compatibility mode "Chrome"

// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-useragent
String user_agent() const;

// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-vendor
String vendor() const { return "Google Inc."sv; } // Compatability mode "Chrome"
String vendor() const { return "Google Inc."sv; } // Compatibility mode "Chrome"

// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-vendorsub
String vendor_sub() const { return ""sv; }
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/Page/EventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ bool EventHandler::fire_keyboard_event(FlyString const& event_name, HTML::Browsi
return focused_element->dispatch_event(*event);
}

// FIXME: De-duplicate this. This is just to prevent wasting a KeyboardEvent alloction when recursing into an (i)frame.
// FIXME: De-duplicate this. This is just to prevent wasting a KeyboardEvent allocation when recursing into an (i)frame.
auto event = UIEvents::KeyboardEvent::create_from_platform_event(document->realm(), event_name, key, modifiers, code_point);

if (JS::GCPtr<HTML::HTMLElement> body = document->body())
Expand Down
2 changes: 1 addition & 1 deletion Userland/Services/WebContent/ConnectionFromClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Web::Page const& ConnectionFromClient::page() const

void ConnectionFromClient::connect_to_webdriver(String const& webdriver_ipc_path)
{
// FIXME: Propogate this error back to the browser.
// FIXME: Propagate this error back to the browser.
if (auto result = m_page_host->connect_to_webdriver(webdriver_ipc_path); result.is_error())
dbgln("Unable to connect to the WebDriver process: {}", result.error());
}
Expand Down
2 changes: 1 addition & 1 deletion Userland/Services/WebDriver/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ ErrorOr<void> Session::start()

TRY(Core::System::posix_spawn("/bin/Browser"sv, nullptr, nullptr, const_cast<char**>(argv), environ));

// FIXME: Allow this to be more asynchronous. For now, this at least allows us to propogate
// FIXME: Allow this to be more asynchronous. For now, this at least allows us to propagate
// errors received while accepting the Browser and WebContent sockets.
TRY(promise->await());

Expand Down