Bläddra i källkod

Everywhere: Fix a bunch of typos

Linus Groh 3 år sedan
förälder
incheckning
173dcfb7cb

+ 3 - 3
Base/usr/share/man/man5/GML-Widget-HorizontalSplitter.md

@@ -1,6 +1,6 @@
 ## Name
 
-GUI Horizontal Spitter Widget
+GUI Horizontal Splitter Widget
 
 ## Description
 
@@ -8,12 +8,12 @@ Defines a GUI horizontal splitter widget.
 
 ## Synopsis
 
-`@GUI::HorizontalSpitter`
+`@GUI::HorizontalSplitter`
 
 ## Examples
 
 ```gml
-@GUI::HorizontalSpitter {
+@GUI::HorizontalSplitter {
 
 }
 ```

+ 1 - 1
Base/usr/share/man/man5/GML-Widget-VerticalSplitter.md

@@ -1,6 +1,6 @@
 ## Name
 
-GML Vertical Spliiter Widget
+GML Vertical Splitter Widget
 
 ## Description
 

+ 1 - 1
Userland/Applications/SoundPlayer/PlaybackManager.cpp

@@ -10,7 +10,7 @@
 PlaybackManager::PlaybackManager(NonnullRefPtr<Audio::ConnectionFromClient> connection)
     : m_connection(connection)
 {
-    // FIXME: The buffer enqueuing should happen on a wholly independend second thread.
+    // FIXME: The buffer enqueuing should happen on a wholly independent second thread.
     m_timer = Core::Timer::construct(PlaybackManager::update_rate_ms, [&]() {
         if (!m_loader)
             return;

+ 1 - 1
Userland/Applications/Spreadsheet/SpreadsheetView.cpp

@@ -194,7 +194,7 @@ void InfinitelyScrollableTableView::mousedown_event(GUI::MouseEvent& event)
 {
     // Override the mouse event so that the 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 targetting
+    // 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.
     if (m_is_hovering_cut_zone || m_is_hovering_extend_zone) {
         if (m_is_hovering_cut_zone)

+ 1 - 1
Userland/Applications/SystemMonitor/main.cpp

@@ -349,7 +349,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
     if (auto result = Core::System::unveil("/usr/local/lib", "r"); result.is_error() && result.error().code() != ENOENT)
         return result.release_error();
 
-    // This file is only accesible when running as root
+    // This file is only accessible when running as root
     if (auto result = Core::System::unveil("/boot/Kernel.debug", "r"); result.is_error() && result.error().code() != EACCES)
         return result.release_error();
 

+ 2 - 2
Userland/DevTools/UserspaceEmulator/SoftVPU.cpp

@@ -647,7 +647,7 @@ void SoftVPU::PSHUFW_mm1_mm2m64_imm8(X86::Instruction const& insn)
 
 void SoftVPU::CMPPS_xmm1_xmm2m128_imm8(X86::Instruction const& insn)
 {
-    // FIXME: Raise Denormal, Invalid Operation (QNaN dependend on imm8)
+    // FIXME: Raise Denormal, Invalid Operation (QNaN dependent on imm8)
     XMM& xmm1 = m_xmm[insn.modrm().reg()];
     f32x4 xmm2m128;
 
@@ -689,7 +689,7 @@ void SoftVPU::CMPPS_xmm1_xmm2m128_imm8(X86::Instruction const& insn)
 }
 void SoftVPU::CMPSS_xmm1_xmm2m32_imm8(X86::Instruction const& insn)
 {
-    // FIXME: Raise Denormal, Invalid Operation (QNaN dependend on imm8)
+    // FIXME: Raise Denormal, Invalid Operation (QNaN dependent on imm8)
     float xmm1 = m_xmm[insn.modrm().reg()].ps[0];
     float xmm2m128;
     bool res;

+ 1 - 1
Userland/Games/Spider/Game.cpp

@@ -305,7 +305,7 @@ void Game::mouseup_event(GUI::MouseEvent& event)
     bool rebound = true;
     if (event.button() == GUI::MouseButton::Secondary) {
         // This enables the game to move the focused cards to the first possible stack excluding empty stacks.
-        // NOTE: This ignores empty stacks, as the game has no undo button, and a card, which has been moved to an empty stack without any other possibilities is not reversable.
+        // NOTE: This ignores empty stacks, as the game has no undo button, and a card, which has been moved to an empty stack without any other possibilities is not reversible.
         for (auto& stack : m_stacks) {
             if (stack.is_focused())
                 continue;

+ 1 - 1
Userland/Libraries/LibAudio/ConnectionFromClient.cpp

@@ -97,7 +97,7 @@ void ConnectionFromClient::custom_event(Core::CustomEvent&)
 
         m_user_queue->discard_samples(available_samples);
 
-        // FIXME: Could we recieve interrupts in a good non-IPC way instead?
+        // FIXME: Could we receive interrupts in a good non-IPC way instead?
         auto result = m_buffer->try_blocking_enqueue(next_chunk, [this]() {
             nanosleep(&m_good_sleep_time, nullptr);
         });

+ 2 - 2
Userland/Libraries/LibCpp/SemanticSyntaxHighlighter.cpp

@@ -107,7 +107,7 @@ static Syntax::TextStyle style_for_token_type(Gfx::Palette const& palette, CodeC
         return { palette.base_text(), false };
     }
 }
-void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo> const& tokens_info, Gfx::Palette const& pallete)
+void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo> const& tokens_info, Gfx::Palette const& palette)
 {
     Vector<GUI::TextDocumentSpan> spans;
     for (auto& token : tokens_info) {
@@ -115,7 +115,7 @@ void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo
         GUI::TextDocumentSpan span;
         span.range.set_start({ token.start_line, token.start_column });
         span.range.set_end({ token.end_line, token.end_column + 1 });
-        auto style = style_for_token_type(pallete, token.type);
+        auto style = style_for_token_type(palette, token.type);
         span.attributes.color = style.color;
         span.attributes.bold = style.bold;
         span.is_skippable = token.type == CodeComprehension::TokenInfo::SemanticType::Whitespace;

+ 1 - 1
Userland/Libraries/LibGUI/Button.cpp

@@ -79,7 +79,7 @@ void Button::paint_event(PaintEvent& event)
 
     if (m_icon) {
         auto solid_color = m_icon->solid_color(60);
-        // Note: 4.5 is the minimum recommended constrast ratio for text on the web:
+        // Note: 4.5 is the minimum recommended contrast ratio for text on the web:
         // (https://developer.mozilla.org/en-US/docs/Web/Accessibility/Understanding_WCAG/Perceivable/Color_contrast)
         // Reusing that threshold here as it seems to work reasonably well.
         bool should_invert_icon = solid_color.has_value() && palette().button().contrast_ratio(*solid_color) < 4.5f;

+ 1 - 1
Userland/Libraries/LibGfx/AntiAliasingPainter.cpp

@@ -356,7 +356,7 @@ Gfx::AntiAliasingPainter::Range Gfx::AntiAliasingPainter::draw_ellipse_part(
         return is_circle ? i < q : ib_squared < qa_squared;
     };
 
-    // Draws a 8 octants for a circle or 4 quadrants for a (partial) elipse
+    // Draws a 8 octants for a circle or 4 quadrants for a (partial) ellipse
     while (in_symmetric_region()) {
         predict();
         minimize();

+ 1 - 1
Userland/Libraries/LibGfx/ClassicStylePainter.cpp

@@ -327,7 +327,7 @@ void ClassicStylePainter::paint_window_frame(Painter& painter, IntRect const& re
 
     if (border_radius > 0) {
         // FIXME: This will draw "useless" pixels that'll get drawn over by the window contents.
-        // preferrably we should just remove the corner pixels from the completely drawn window
+        // preferably we should just remove the corner pixels from the completely drawn window
         // but I don't know how to do that yet. :^)
         AntiAliasingPainter aa_painter { painter };
         aa_painter.fill_rect_with_rounded_corners(rect, base_color, border_radius);

+ 1 - 1
Userland/Libraries/LibPDF/Encryption.cpp

@@ -112,7 +112,7 @@ ByteBuffer StandardSecurityHandler::compute_user_password_value<false>(ByteBuffe
     //    described in [Algorithm 2]
     auto encryption_key = compute_encryption_key(password_string);
 
-    // b) Initialize the MD5 hash functino and pass the 32-byte padding string
+    // b) Initialize the MD5 hash function and pass the 32-byte padding string
     //    shown in step (a) of [Algorithm 2] as input to this function
     Crypto::Hash::MD5 md5;
     md5.update(standard_encryption_key_padding_bytes);

+ 1 - 1
Userland/Libraries/LibSoftGPU/Device.cpp

@@ -247,7 +247,7 @@ ALWAYS_INLINE void Device::rasterize(Gfx::IntRect& render_bounds, CB1 set_covera
     auto const qy1 = render_bounds_bottom & ~1;
 
     // Rasterize all quads
-    // FIXME: this could be embarrasingly parallel
+    // FIXME: this could be embarrassingly parallel
     for (int qy = qy0; qy <= qy1; qy += 2) {
         for (int qx = qx0; qx <= qx1; qx += 2) {
             PixelQuad quad;

+ 1 - 1
Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp

@@ -166,7 +166,7 @@ void EventLoop::process()
     //               - The user agent believes that updating the rendering of the Document's browsing context would have no visible effect, and
     //               - The Document's map of animation frame callbacks is empty.
 
-    // FIXME:     5. Remove from docs all Document objects for which the user agent believes that it's preferrable to skip updating the rendering for other reasons.
+    // FIXME:     5. Remove from docs all Document objects for which the user agent believes that it's preferable to skip updating the rendering for other reasons.
 
     // FIXME:     6. For each fully active Document in docs, flush autofocus candidates for that Document if its browsing context is a top-level browsing context.
 

+ 2 - 2
Userland/Libraries/LibWeb/HTML/FormAssociatedElement.h

@@ -11,8 +11,8 @@
 
 namespace Web::HTML {
 
-// Form-associated elements should invoke this macro to inject overidden FormAssociatedElement and HTMLElement
-// methods as needed. If your class wished to override an HTMLElement method that is overidden here, use the
+// Form-associated elements should invoke this macro to inject overridden FormAssociatedElement and HTMLElement
+// methods as needed. If your class wished to override an HTMLElement method that is overridden here, use the
 // following methods instead:
 //
 //    HTMLElement::inserted() -> Use form_associated_element_was_inserted()

+ 2 - 2
Userland/Libraries/LibWeb/HTML/Worker.cpp

@@ -111,7 +111,7 @@ void Worker::run_a_worker(AK::URL& url, EnvironmentSettingsObject& outside_setti
     if (is_shared)
         TODO();
 
-    // FIXME: Make and use subclasses of WorkerGlobalScope, however this requries JS::GlobalObject to
+    // FIXME: Make and use subclasses of WorkerGlobalScope, however this requires JS::GlobalObject to
     //        play nicely with the IDL interpreter, to make spec-compliant extensions, which it currently does not.
     m_worker_scope = m_worker_vm->heap().allocate_without_global_object<JS::GlobalObject>();
     m_worker_scope->initialize_global_object();
@@ -171,7 +171,7 @@ void Worker::run_a_worker(AK::URL& url, EnvironmentSettingsObject& outside_setti
     m_inner_settings = WorkerEnvironmentSettingsObject::setup(*m_document, m_execution_context);
 
     // 10. Set worker global scope's name to the value of options's name member.
-    // FIXME: name propery requires the SharedWorkerGlobalScope or DedicatedWorkerGlobalScope child class to be used
+    // FIXME: name property requires the SharedWorkerGlobalScope or DedicatedWorkerGlobalScope child class to be used
 
     // 11. Append owner to worker global scope's owner set.
     // FIXME: support for 'owner' set on WorkerGlobalScope