diff options
Diffstat (limited to 'Userland/Libraries')
19 files changed, 36 insertions, 36 deletions
diff --git a/Userland/Libraries/LibC/fenv.cpp b/Userland/Libraries/LibC/fenv.cpp index eef6f4b428..a9f057f25e 100644 --- a/Userland/Libraries/LibC/fenv.cpp +++ b/Userland/Libraries/LibC/fenv.cpp @@ -7,7 +7,7 @@ #include <AK/Types.h> #include <fenv.h> -// This is the size of the floating point envinronment image in protected mode +// This is the size of the floating point environment image in protected mode static_assert(sizeof(__x87_floating_point_environment) == 28); static u16 read_status_register() diff --git a/Userland/Libraries/LibC/spawn.cpp b/Userland/Libraries/LibC/spawn.cpp index 96b7fe857a..c1ac4b5a7b 100644 --- a/Userland/Libraries/LibC/spawn.cpp +++ b/Userland/Libraries/LibC/spawn.cpp @@ -212,9 +212,9 @@ int posix_spawnattr_getschedparam(const posix_spawnattr_t* attr, struct sched_pa } // https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawnattr_getschedpolicy.html -int posix_spawnattr_getschedpolicy(const posix_spawnattr_t* attr, int* out_schedpolicty) +int posix_spawnattr_getschedpolicy(const posix_spawnattr_t* attr, int* out_schedpolicy) { - *out_schedpolicty = attr->schedpolicy; + *out_schedpolicy = attr->schedpolicy; return 0; } diff --git a/Userland/Libraries/LibC/sys/auxv.h b/Userland/Libraries/LibC/sys/auxv.h index e5d6a87702..28da5da4e7 100644 --- a/Userland/Libraries/LibC/sys/auxv.h +++ b/Userland/Libraries/LibC/sys/auxv.h @@ -27,7 +27,7 @@ __BEGIN_DECLS #define AT_EGID 14 /* a_val holds effective group id of process */ #define AT_PLATFORM 15 /* a_val points to a string containing platform name */ #define AT_HWCAP 16 /* a_val contains bitmask of CPU features. Equivalent to CPUID 1.EDX*/ -#define AT_CLKTCK 17 /* a_val contains frequence at which times() increments. (Re: Spec. What is times()?) */ +#define AT_CLKTCK 17 /* a_val contains frequency at which times() increments. (Re: Spec. What is times()?) */ #define AT_SECURE 23 /* a_val holds 1 if program in secure mode (e.g. suid). Otherwise 0 */ #define AT_BASE_PLATFORM 24 /* a_ptr points to a string identifying base platform name, which might be different from platform (e.g x86_64 when in i386 compat) */ #define AT_RANDOM 25 /* a_ptr points to 16 securely generated random bytes */ diff --git a/Userland/Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp b/Userland/Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp index f0333d1940..51bc227cf6 100644 --- a/Userland/Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/Algorithms/BitwiseOperations.cpp @@ -237,7 +237,7 @@ ALWAYS_INLINE UnsignedBigInteger::Word UnsignedBigIntegerAlgorithms::shift_left_ size_t result_word_index) { // "<= length()" (rather than length() - 1) is intentional, - // The result inedx of length() is used when calculating the carry word + // The result index of length() is used when calculating the carry word VERIFY(result_word_index <= number.length()); VERIFY(num_bits <= UnsignedBigInteger::BITS_IN_WORD); u32 result = 0; diff --git a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp index 5299e7dd5e..59aaf1933d 100644 --- a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp @@ -60,7 +60,7 @@ u64 SignedBigInteger::to_u64() const u64 unsigned_value = m_unsigned_data.to_u64(); if (!m_sign) return unsigned_value; - return ~(unsigned_value - 1); // equivalent to `-unsigned_value`, but doesnt trigger UBSAN + return ~(unsigned_value - 1); // equivalent to `-unsigned_value`, but doesn't trigger UBSAN } double SignedBigInteger::to_double() const diff --git a/Userland/Libraries/LibDebug/Dwarf/AbbreviationsMap.cpp b/Userland/Libraries/LibDebug/Dwarf/AbbreviationsMap.cpp index 5cd2e4f4b3..983d5f5b27 100644 --- a/Userland/Libraries/LibDebug/Dwarf/AbbreviationsMap.cpp +++ b/Userland/Libraries/LibDebug/Dwarf/AbbreviationsMap.cpp @@ -37,9 +37,9 @@ void AbbreviationsMap::populate_map() u8 has_children = 0; abbreviation_stream >> has_children; - AbbreviationEntry abbrevation_entry {}; - abbrevation_entry.tag = static_cast<EntryTag>(tag); - abbrevation_entry.has_children = (has_children == 1); + AbbreviationEntry abbreviation_entry {}; + abbreviation_entry.tag = static_cast<EntryTag>(tag); + abbreviation_entry.has_children = (has_children == 1); AttributeSpecification current_attribute_specification {}; do { @@ -58,11 +58,11 @@ void AbbreviationsMap::populate_map() } if (current_attribute_specification.attribute != Attribute::None) { - abbrevation_entry.attribute_specifications.append(current_attribute_specification); + abbreviation_entry.attribute_specifications.append(current_attribute_specification); } } while (current_attribute_specification.attribute != Attribute::None || current_attribute_specification.form != AttributeDataForm::None); - m_entries.set((u32)abbreviation_code, move(abbrevation_entry)); + m_entries.set((u32)abbreviation_code, move(abbreviation_entry)); } } diff --git a/Userland/Libraries/LibDebug/ProcessInspector.cpp b/Userland/Libraries/LibDebug/ProcessInspector.cpp index c13f78cd58..c006b2094f 100644 --- a/Userland/Libraries/LibDebug/ProcessInspector.cpp +++ b/Userland/Libraries/LibDebug/ProcessInspector.cpp @@ -27,7 +27,7 @@ Optional<ProcessInspector::SymbolicationResult> ProcessInspector::symbolicate(Fl auto* lib = library_at(address); if (!lib) return {}; - // FIXME: ELF::Image symlicate() API should return String::empty() if symbol is not found (It currently returns ??) + // FIXME: ELF::Image symbolicate() API should return String::empty() if symbol is not found (It currently returns ??) auto symbol = lib->debug_info->elf().symbolicate(address - lib->base_address); return { { lib->name, symbol } }; } diff --git a/Userland/Libraries/LibGfx/ClassicWindowTheme.h b/Userland/Libraries/LibGfx/ClassicWindowTheme.h index 0a07e63f1b..e72e9b90f1 100644 --- a/Userland/Libraries/LibGfx/ClassicWindowTheme.h +++ b/Userland/Libraries/LibGfx/ClassicWindowTheme.h @@ -48,7 +48,7 @@ private: bool uses_alpha() const { // We don't care about the title_stripes_color or title_shadow_color alpha channels because they are - // effectively rendered on top of the borders and don't mean whether the frame itself atually has + // effectively rendered on top of the borders and don't mean whether the frame itself actually has // any alpha channels that would require the entire frame to be rendered as transparency. return title_color.alpha() != 0xff || border_color.alpha() != 0xff || border_color2.alpha() != 0xff; } diff --git a/Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp b/Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp index 9ded0b192a..23d10e17eb 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/ListFormat.cpp @@ -13,7 +13,7 @@ namespace JS::Intl { -// 13 ListFomat Objects, https://tc39.es/ecma402/#listformat-objects +// 13 ListFormat Objects, https://tc39.es/ecma402/#listformat-objects ListFormat::ListFormat(Object& prototype) : Object(prototype) { diff --git a/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.cpp b/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.cpp index 4561b0d933..10873eed2d 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.cpp @@ -1589,7 +1589,7 @@ int compute_exponent(NumberFormat& number_format, double number) int magnitude = log10floor(number); // 4. Let exponent be ComputeExponentForMagnitude(numberFormat, magnitude). - int exponent = compute_exponent_for_magniude(number_format, magnitude); + int exponent = compute_exponent_for_magnitude(number_format, magnitude); // 5. Let x be x × 10^(-exponent). number *= pow(10, -exponent); @@ -1613,11 +1613,11 @@ int compute_exponent(NumberFormat& number_format, double number) } // 10. Return ComputeExponentForMagnitude(numberFormat, magnitude + 1). - return compute_exponent_for_magniude(number_format, magnitude + 1); + return compute_exponent_for_magnitude(number_format, magnitude + 1); } // 15.1.17 ComputeExponentForMagnitude ( numberFormat, magnitude ), https://tc39.es/ecma402/#sec-computeexponentformagnitude -int compute_exponent_for_magniude(NumberFormat& number_format, int magnitude) +int compute_exponent_for_magnitude(NumberFormat& number_format, int magnitude) { // 1. Let notation be numberFormat.[[Notation]]. switch (number_format.notation()) { diff --git a/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h b/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h index 986ce177d2..d61ab9562a 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h +++ b/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h @@ -220,6 +220,6 @@ ThrowCompletionOr<void> set_number_format_unit_options(GlobalObject& global_obje Optional<Variant<StringView, String>> get_number_format_pattern(NumberFormat& number_format, double number, Unicode::NumberFormat& found_pattern); Optional<StringView> get_notation_sub_pattern(NumberFormat& number_format, int exponent); int compute_exponent(NumberFormat& number_format, double number); -int compute_exponent_for_magniude(NumberFormat& number_format, int magnitude); +int compute_exponent_for_magnitude(NumberFormat& number_format, int magnitude); } diff --git a/Userland/Libraries/LibJS/Runtime/RegExpPrototype.cpp b/Userland/Libraries/LibJS/Runtime/RegExpPrototype.cpp index b452e48cc7..1e7f123a22 100644 --- a/Userland/Libraries/LibJS/Runtime/RegExpPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/RegExpPrototype.cpp @@ -563,7 +563,7 @@ JS_DEFINE_NATIVE_FUNCTION(RegExpPrototype::symbol_match) // 3. If matchStr is the empty String, then if (match_str.is_empty()) { - // Stepsp 3a-3c are implemented by increment_last_index. + // Steps 3a-3c are implemented by increment_last_index. TRY(increment_last_index(global_object, *regexp_object, string.view(), full_unicode)); } @@ -682,7 +682,7 @@ JS_DEFINE_NATIVE_FUNCTION(RegExpPrototype::symbol_replace) // 2. If matchStr is the empty String, then if (match_str.is_empty()) { - // Stepsp 2a-2c are implemented by increment_last_index. + // Steps 2a-2c are implemented by increment_last_index. TRY(increment_last_index(global_object, *regexp_object, string.view(), full_unicode)); } } diff --git a/Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.format.js b/Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.format.js index 592e80a408..91383b0331 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.format.js +++ b/Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.format.js @@ -273,7 +273,7 @@ describe("dayPeriod", () => { describe("hour", () => { // prettier-ignore - // FIXME: The 2-digit results are supposed to include {ampm}. These results are acheived from the "HH" + // FIXME: The 2-digit results are supposed to include {ampm}. These results are achieved from the "HH" // pattern, which should only be applied to 24-hour cycles. const data = [ { hour: "2-digit", en0: "05", en1: "07", ar0: "٠٥", ar1: "٠٧" }, diff --git a/Userland/Libraries/LibJS/Tests/builtins/Object/Object.create.js b/Userland/Libraries/LibJS/Tests/builtins/Object/Object.create.js index a4d8788cdb..6f1b4e0e34 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Object/Object.create.js +++ b/Userland/Libraries/LibJS/Tests/builtins/Object/Object.create.js @@ -3,7 +3,7 @@ test("length is 2", () => { }); describe("errors", () => { - test("non-object protpotype value", () => { + test("non-object prototype value", () => { expect(() => Object.create(42)).toThrowWithMessage( TypeError, "Prototype must be an object or null" diff --git a/Userland/Libraries/LibJS/Tests/loops/for-await-of.js b/Userland/Libraries/LibJS/Tests/loops/for-await-of.js index f590e7462f..c6e30a15e9 100644 --- a/Userland/Libraries/LibJS/Tests/loops/for-await-of.js +++ b/Userland/Libraries/LibJS/Tests/loops/for-await-of.js @@ -64,7 +64,7 @@ describe("only allowed in async functions", () => { expect("(function* () { for await (const v of []) return v; })").not.toEval(); }); - test("async genrator functions", () => { + test("async generator functions", () => { expect("async function* foo() { for await (const v of []) yield v; }").toEval(); expect("(async function* () { for await (const v of []) yield v; })").toEval(); }); diff --git a/Userland/Libraries/LibMarkdown/Text.h b/Userland/Libraries/LibMarkdown/Text.h index 7926eab8fc..c4435368e2 100644 --- a/Userland/Libraries/LibMarkdown/Text.h +++ b/Userland/Libraries/LibMarkdown/Text.h @@ -139,7 +139,7 @@ private: bool punct_before; bool punct_after; // is_run indicates that this token is a 'delimiter run'. A delimiter - // run occurs when several of the same sytactical character ('`', '_', + // run occurs when several of the same syntactical character ('`', '_', // or '*') occur in a row. bool is_run; diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index 8ed8c3c0e5..d01e0d9d7d 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -615,12 +615,12 @@ void Device::draw_primitives(PrimitiveType primitive_type, FloatMatrix4x4 const& // At this point, the user has effectively specified that they are done with defining the geometry // of what they want to draw. We now need to do a few things (https://www.khronos.org/opengl/wiki/Rendering_Pipeline_Overview): // - // 1. Transform all of the vertices in the current vertex list into eye space by mulitplying the model-view matrix + // 1. Transform all of the vertices in the current vertex list into eye space by multiplying the model-view matrix // 2. Transform all of the vertices from eye space into clip space by multiplying by the projection matrix // 3. If culling is enabled, we cull the desired faces (https://learnopengl.com/Advanced-OpenGL/Face-culling) // 4. Each element of the vertex is then divided by w to bring the positions into NDC (Normalized Device Coordinates) - // 5. The vertices are sorted (for the rasteriser, how are we doing this? 3Dfx did this top to bottom in terms of vertex y coordinates) - // 6. The vertices are then sent off to the rasteriser and drawn to the screen + // 5. The vertices are sorted (for the rasterizer, how are we doing this? 3Dfx did this top to bottom in terms of vertex y coordinates) + // 6. The vertices are then sent off to the rasterizer and drawn to the screen float scr_width = m_render_target->width(); float scr_height = m_render_target->height(); diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index c1d93e3bdf..d8277447d2 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -177,7 +177,7 @@ public: JS::Value run_javascript(StringView source, StringView filename = "(unknown)"); NonnullRefPtr<Element> create_element(const String& tag_name); - NonnullRefPtr<Element> create_element_ns(const String& namespace_, const String& qualifed_name); + NonnullRefPtr<Element> create_element_ns(const String& namespace_, const String& qualified_name); NonnullRefPtr<DocumentFragment> create_document_fragment(); NonnullRefPtr<Text> create_text_node(const String& data); NonnullRefPtr<Comment> create_comment(const String& data); diff --git a/Userland/Libraries/LibX86/Instruction.cpp b/Userland/Libraries/LibX86/Instruction.cpp index 86661312b0..4907fd72a0 100644 --- a/Userland/Libraries/LibX86/Instruction.cpp +++ b/Userland/Libraries/LibX86/Instruction.cpp @@ -546,7 +546,7 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format, build_slash_rm(0xD9, 5, 0xED, "FLDLN2", OP_FPU, &Interpreter::FLDLN2); build_slash_rm(0xD9, 5, 0xEE, "FLDZ", OP_FPU, &Interpreter::FLDZ); build_slash(0xD9, 6, "FNSTENV", OP_FPU_RM32, &Interpreter::FNSTENV); - // FIXME: Extraodinary prefix 0x9B + 0xD9/6: FSTENV + // FIXME: Extraordinary prefix 0x9B + 0xD9/6: FSTENV build_slash_rm(0xD9, 6, 0xF0, "F2XM1", OP_FPU, &Interpreter::F2XM1); build_slash_rm(0xD9, 6, 0xF1, "FYL2X", OP_FPU, &Interpreter::FYL2X); build_slash_rm(0xD9, 6, 0xF2, "FPTAN", OP_FPU, &Interpreter::FPTAN); @@ -556,7 +556,7 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format, build_slash_rm(0xD9, 6, 0xF6, "FDECSTP", OP_FPU, &Interpreter::FDECSTP); build_slash_rm(0xD9, 6, 0xF7, "FINCSTP", OP_FPU, &Interpreter::FINCSTP); build_slash(0xD9, 7, "FNSTCW", OP_FPU_RM16, &Interpreter::FNSTCW); - // FIXME: Extraodinary prefix 0x9B + 0xD9/7: FSTCW + // FIXME: Extraordinary prefix 0x9B + 0xD9/7: FSTCW build_slash_rm(0xD9, 7, 0xF8, "FPREM", OP_FPU, &Interpreter::FPREM); build_slash_rm(0xD9, 7, 0xF9, "FYL2XP1", OP_FPU, &Interpreter::FYL2XP1); build_slash_rm(0xD9, 7, 0xFA, "FSQRT", OP_FPU, &Interpreter::FSQRT); @@ -592,9 +592,9 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format, build_slash_rm(0xDB, 4, 0xE0, "FNENI", OP_FPU_reg, &Interpreter::FNENI); build_slash_rm(0xDB, 4, 0xE1, "FNDISI", OP_FPU_reg, &Interpreter::FNDISI); build_slash_rm(0xDB, 4, 0xE2, "FNCLEX", OP_FPU_reg, &Interpreter::FNCLEX); - // FIXME: Extraodinary prefix 0x9B + 0xDB/4: FCLEX + // FIXME: Extraordinary prefix 0x9B + 0xDB/4: FCLEX build_slash_rm(0xDB, 4, 0xE3, "FNINIT", OP_FPU_reg, &Interpreter::FNINIT); - // FIXME: Extraodinary prefix 0x9B + 0xDB/4: FINIT + // FIXME: Extraordinary prefix 0x9B + 0xDB/4: FINIT build_slash_rm(0xDB, 4, 0xE4, "FNSETPM", OP_FPU_reg, &Interpreter::FNSETPM); build_slash(0xDB, 5, "FLD", OP_FPU_M80, &Interpreter::FLD_RM80); build_slash_reg(0xDB, 5, "FUCOMI", OP_FPU_reg, &Interpreter::FUCOMI); @@ -622,9 +622,9 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format, build_slash(0xDD, 5, "FUCOMP", OP_FPU_reg, &Interpreter::FUCOMP); // FIXME: DD/5 E9 (...but isn't this what DD/5 does naturally, with E9 just being normal R/M?) build_slash(0xDD, 6, "FNSAVE", OP_FPU_mem, &Interpreter::FNSAVE); - // FIXME: Extraodinary prefix 0x9B + 0xDD/6: FSAVE + // FIXME: Extraordinary prefix 0x9B + 0xDD/6: FSAVE build_slash(0xDD, 7, "FNSTSW", OP_FPU_RM16, &Interpreter::FNSTSW); - // FIXME: Extraodinary prefix 0x9B + 0xDD/7: FSTSW + // FIXME: Extraordinary prefix 0x9B + 0xDD/7: FSTSW build_slash(0xDE, 0, "FIADD", OP_FPU_RM16, &Interpreter::FIADD_RM16); build_slash_reg(0xDE, 0, "FADDP", OP_FPU_reg, &Interpreter::FADDP); @@ -659,7 +659,7 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format, build_slash_reg(0xDF, 3, "FSTP9", OP_FPU_reg, &Interpreter::FSTP_RM32); build_slash(0xDF, 4, "FBLD", OP_FPU_M80, &Interpreter::FBLD_M80); build_slash_reg(0xDF, 4, "FNSTSW", OP_FPU_AX16, &Interpreter::FNSTSW_AX); - // FIXME: Extraodinary prefix 0x9B + 0xDF/e: FSTSW_AX + // FIXME: Extraordinary prefix 0x9B + 0xDF/e: FSTSW_AX build_slash(0xDF, 5, "FILD", OP_FPU_RM64, &Interpreter::FILD_RM64); build_slash_reg(0xDF, 5, "FUCOMIP", OP_FPU_reg, &Interpreter::FUCOMIP); build_slash(0xDF, 6, "FBSTP", OP_FPU_M80, &Interpreter::FBSTP_M80); @@ -828,7 +828,7 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format, build_0f_slash(0x18, 2, "PREFETCHT1", OP_RM8, &Interpreter::PREFETCHT1); build_0f_slash(0x18, 3, "PREFETCHT2", OP_RM8, &Interpreter::PREFETCHT2); - // FIXME: Techinically NoPrefix (sse_np_slash?) + // FIXME: Technically NoPrefix (sse_np_slash?) build_0f_slash(0xAE, 2, "LDMXCSR", OP_RM32, &Interpreter::LDMXCSR); build_0f_slash(0xAE, 3, "STMXCSR", OP_RM32, &Interpreter::STMXCSR); // FIXME: SFENCE: NP 0F AE F8 |