diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-09-09 14:53:53 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-09-14 04:46:49 +0000 |
commit | d0a1775369fc8ff6d9b6197a38b93c7567823f96 (patch) | |
tree | 9ee97eab538c2fd94d721a0e36a3656535232dcf /Userland/Libraries | |
parent | 63c727a4a3414812aa1df50e700bda713f4039a4 (diff) | |
download | serenity-d0a1775369fc8ff6d9b6197a38b93c7567823f96.zip |
Everywhere: Fix a variety of typos
Spelling fixes found by `codespell`.
Diffstat (limited to 'Userland/Libraries')
8 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp index c091c0e1ca..cefcf6e796 100644 --- a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp @@ -238,7 +238,7 @@ double UnsignedBigInteger::to_double(UnsignedBigInteger::RoundingMode rounding_m u8 bits_dropped_from_final_word = 0; if (bits_written < bits_to_read && last_word_index > 0) { - // Second word can always just cleanly be shifted upto the final bit of the first word + // Second word can always just cleanly be shifted up to the final bit of the first word // since the first has at most BIT_IN_WORD - 1, 31 u64 next_word = m_words[last_word_index - 1]; VERIFY((mantissa & (next_word << (bits_in_u64 - bits_written - BITS_IN_WORD))) == 0); diff --git a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp index db42e46db4..173983f3b0 100644 --- a/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp +++ b/Userland/Libraries/LibGfx/AntiAliasingPainter.cpp @@ -289,7 +289,7 @@ void AntiAliasingPainter::draw_ellipse(IntRect const& a_rect, Color color, int t { // FIXME: Come up with an allocation-free version of this! // Using draw_line() for segments of an ellipse was attempted but gave really poor results :^( - // There probably is a way to adjust the fill of draw_ellipse_part() to do this, but gettting it rendering correctly is tricky. + // There probably is a way to adjust the fill of draw_ellipse_part() to do this, but getting it rendering correctly is tricky. // The outline of the steps required to paint it efficiently is: // - Paint the outer ellipse without the fill (from the fill() lambda in draw_ellipse_part()) // - Paint the inner ellipse, but in the set_pixel() invert the alpha values diff --git a/Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.hourCycles.js b/Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.hourCycles.js index ba6620a118..b780cf04ff 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.hourCycles.js +++ b/Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.hourCycles.js @@ -23,7 +23,7 @@ describe("normal behavior", () => { expect(new Intl.Locale("ar", { hourCycle: "h24" }).hourCycles).toEqual(["h24"]); // Invalid hourCycles also take precedence when specified in the locale string. Unlike other - // properties, Locale("en", { hourCycle: "ladybird" }) will explictly throw. + // properties, Locale("en", { hourCycle: "ladybird" }) will explicitly throw. expect(new Intl.Locale("en-u-hc-ladybird").hourCycles).toEqual(["ladybird"]); }); }); diff --git a/Userland/Libraries/LibJS/Tests/tagged-template-literals.js b/Userland/Libraries/LibJS/Tests/tagged-template-literals.js index de8598122b..620566a1a3 100644 --- a/Userland/Libraries/LibJS/Tests/tagged-template-literals.js +++ b/Userland/Libraries/LibJS/Tests/tagged-template-literals.js @@ -106,7 +106,7 @@ describe("tagged template literal functionality", () => { expect(raw[1]).toBe("\\nbar"); }); - test("invalid escapes give undefined cooked values but can be accesed in raw form", () => { + test("invalid escapes give undefined cooked values but can be accessed in raw form", () => { let calls = 0; let lastValue = null; function noCookedButRaw(values) { diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index b6b40ff17c..bd40713ae8 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -2477,7 +2477,7 @@ RefPtr<StyleValue> Parser::parse_linear_gradient_function(ComponentValue const& if (side_a.has_value() && !side_b.has_value()) { gradient_direction = *side_a; } else if (side_a.has_value() && side_b.has_value()) { - // Covert two sides to a corner + // Convert two sides to a corner if (to_underlying(*side_b) < to_underlying(*side_a)) swap(side_a, side_b); if (side_a == SideOrCorner::Top && side_b == SideOrCorner::Left) diff --git a/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp b/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp index 95cf5150cb..e792b0b863 100644 --- a/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp +++ b/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp @@ -158,7 +158,7 @@ DOM::ExceptionOr<String> serialize_node_to_xml_string_impl(JS::NonnullGCPtr<DOM: // - The require well-formed flag // The XML serialization algorithm produces an XML serialization of an arbitrary DOM node node based on the node's interface type. - // Each referenced algorithm is to be passed the arguments as they were recieved by the caller and return their result to the caller. + // Each referenced algorithm is to be passed the arguments as they were received by the caller and return their result to the caller. // Re-throw any exceptions. // If node's interface is: diff --git a/Userland/Libraries/LibWeb/Painting/StackingContext.cpp b/Userland/Libraries/LibWeb/Painting/StackingContext.cpp index b6ef7463d4..ac46da40da 100644 --- a/Userland/Libraries/LibWeb/Painting/StackingContext.cpp +++ b/Userland/Libraries/LibWeb/Painting/StackingContext.cpp @@ -53,7 +53,7 @@ void StackingContext::sort() static PaintPhase to_paint_phase(StackingContext::StackingContextPaintPhase phase) { - // There are not a fully correct mapping since some stacking context phases are combind. + // There are not a fully correct mapping since some stacking context phases are combined. switch (phase) { case StackingContext::StackingContextPaintPhase::Floats: case StackingContext::StackingContextPaintPhase::BackgroundAndBordersForInlineLevelAndReplaced: diff --git a/Userland/Libraries/LibX86/Instruction.cpp b/Userland/Libraries/LibX86/Instruction.cpp index 88b6fb69a6..d649c1bfb4 100644 --- a/Userland/Libraries/LibX86/Instruction.cpp +++ b/Userland/Libraries/LibX86/Instruction.cpp @@ -2223,14 +2223,14 @@ void Instruction::to_string_internal(StringBuilder& builder, u32 origin, SymbolP append_mnemonic_space(); append_xmm(); append(','); - append_mmrm32(); // FIXME: No Memmory + append_mmrm32(); // FIXME: No Memory break; case OP_mm1_xmm2m128: case OP_mm_xmm: append_mnemonic_space(); append_mm(); append(','); - append_xmmrm32(); // FIXME: No Memmory + append_xmmrm32(); // FIXME: No Memory break; case OP_xmm1_imm8: append_mnemonic_space(); |