Everywhere: Fix a few comment typos

This commit is contained in:
Nico Weber 2022-11-09 10:56:12 -05:00 committed by Linus Groh
parent bc807466f9
commit 6911c5545c
Notes: sideshowbarker 2024-07-17 08:34:29 +09:00
8 changed files with 9 additions and 9 deletions

View file

@ -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 .
//

View file

@ -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.

View file

@ -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:
// [[RegExpInput]]
// [[RegExpLastMatch]]
// [[RegExpLastParen]]

View file

@ -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& {

View file

@ -32,13 +32,13 @@ public:
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; }

View file

@ -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())

View file

@ -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());
}

View file

@ -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());