summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-09-30 20:11:27 -0400
committerLinus Groh <mail@linusgroh.de>2021-10-01 01:18:52 +0100
commit6c9bc18a792d4ac22eaac91fe4ec2ed11ed7019e (patch)
treec850a8c69b04bcd578d811d6552f75c5287996f9 /Userland
parent971d60c329cced524ea0e7efc88adb95f5cad64c (diff)
downloadserenity-6c9bc18a792d4ac22eaac91fe4ec2ed11ed7019e.zip
Userland: Fix typos
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/Piano/TrackManager.cpp2
-rw-r--r--Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp4
-rw-r--r--Userland/DevTools/UserspaceEmulator/SoftFPU.cpp22
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp2
-rw-r--r--Userland/Libraries/LibWeb/DOM/Window.cpp2
-rw-r--r--Userland/Utilities/less.cpp2
6 files changed, 17 insertions, 17 deletions
diff --git a/Userland/Applications/Piano/TrackManager.cpp b/Userland/Applications/Piano/TrackManager.cpp
index 9031a2f45f..9da633f0a8 100644
--- a/Userland/Applications/Piano/TrackManager.cpp
+++ b/Userland/Applications/Piano/TrackManager.cpp
@@ -21,7 +21,7 @@ void TrackManager::time_forward(int amount)
{
int new_value = (static_cast<int>(m_time) + amount) % roll_length;
- if (new_value < 0) { // If the new time value is negaive add roll_length to wrap around
+ if (new_value < 0) { // If the new time value is negative add roll_length to wrap around
m_time = roll_length + new_value;
} else {
m_time = new_value;
diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp
index 6bdf8bdbf9..90cebf4719 100644
--- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp
+++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp
@@ -145,7 +145,7 @@ Vector<GUI::AutocompleteProvider::Entry> CppComprehensionEngine::autocomplete_na
return false;
if (symbol.is_local) {
- // If this symbol was declared bellow us in a function, it's not available to us.
+ // If this symbol was declared below us in a function, it's not available to us.
bool is_unavailable = symbol.is_local && symbol.declaration->start().line > node.start().line;
if (is_unavailable)
return false;
@@ -500,7 +500,7 @@ RefPtr<Declaration> CppComprehensionEngine::find_declaration_of(const DocumentDa
}
if (match_variable || match_parameter) {
- // If this symbol was declared bellow us in a function, it's not available to us.
+ // If this symbol was declared below us in a function, it's not available to us.
bool is_unavailable = symbol.is_local && symbol.declaration->start().line > node.start().line;
if (!is_unavailable && (symbol.name.name == target_decl->name)) {
diff --git a/Userland/DevTools/UserspaceEmulator/SoftFPU.cpp b/Userland/DevTools/UserspaceEmulator/SoftFPU.cpp
index 64e3463019..6d8eb1fc86 100644
--- a/Userland/DevTools/UserspaceEmulator/SoftFPU.cpp
+++ b/Userland/DevTools/UserspaceEmulator/SoftFPU.cpp
@@ -863,7 +863,7 @@ void SoftFPU::FICOM_RM32(const X86::Instruction& insn)
// FIXME: Check for denormals
VERIFY(insn.modrm().is_register());
auto val_shd = insn.modrm().read32(m_cpu, insn);
- warn_if_uninitialized(val_shd, "int32 comapre to float");
+ warn_if_uninitialized(val_shd, "int32 compare to float");
auto val = static_cast<i32>(val_shd.value());
if (fpu_isnan(0)) {
fpu_set_unordered();
@@ -1288,16 +1288,16 @@ void SoftFPU::FNSETPM(const X86::Instruction&) { TODO_INSN(); }
// MMX
// helpers
-#define LOAD_MM_MM64M() \
- MMX mm; \
- MMX mm64m; \
- if (insn.modrm().mod() == 0b11) { /* 0b11 signals a register */ \
- mm64m = mmx_get(insn.modrm().rm()); \
- } else { \
- auto temp = insn.modrm().read64(m_cpu, insn); \
- warn_if_uninitialized(temp, "Read of uninitialized Memmory as Packed integer"); \
- mm64m.raw = temp.value(); \
- } \
+#define LOAD_MM_MM64M() \
+ MMX mm; \
+ MMX mm64m; \
+ if (insn.modrm().mod() == 0b11) { /* 0b11 signals a register */ \
+ mm64m = mmx_get(insn.modrm().rm()); \
+ } else { \
+ auto temp = insn.modrm().read64(m_cpu, insn); \
+ warn_if_uninitialized(temp, "Read of uninitialized Memory as Packed integer"); \
+ mm64m.raw = temp.value(); \
+ } \
mm = mmx_get(insn.modrm().reg())
#define MMX_intrinsic(intrinsic, res_type, actor_type) \
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
index 7092482db7..52193d3b44 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
@@ -2025,7 +2025,7 @@ RefPtr<StyleValue> Parser::parse_border_radius_shorthand_value(ParsingContext co
RefPtr<StyleValue> Parser::parse_box_shadow_value(ParsingContext const& context, Vector<StyleComponentValueRule> const& component_values)
{
- // FIXME: Also support inset, spread-radius and multiple comma-seperated box-shadows
+ // FIXME: Also support inset, spread-radius and multiple comma-separated box-shadows
Length offset_x {};
Length offset_y {};
Length blur_radius {};
diff --git a/Userland/Libraries/LibWeb/DOM/Window.cpp b/Userland/Libraries/LibWeb/DOM/Window.cpp
index c476b0c38f..9c71b3ffad 100644
--- a/Userland/Libraries/LibWeb/DOM/Window.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Window.cpp
@@ -288,7 +288,7 @@ void Window::fire_a_page_transition_event(FlyString event_name, bool persisted)
// with the persisted attribute initialized to persisted,
auto event = HTML::PageTransitionEvent::create(move(event_name), persisted);
- // ...the cancelable attribute intialized to true,
+ // ...the cancelable attribute initialized to true,
event->set_cancelable(true);
// the bubbles attribute initialized to true,
diff --git a/Userland/Utilities/less.cpp b/Userland/Utilities/less.cpp
index ce7aa958f9..f785dae5c8 100644
--- a/Userland/Utilities/less.cpp
+++ b/Userland/Utilities/less.cpp
@@ -80,7 +80,7 @@ static Vector<String> wrap_line(Utf8View const& string, size_t width)
in_ansi = true;
if (!in_ansi)
- // FIXME: calcuate the printed width of the character.
+ // FIXME: calculate the printed width of the character.
offset++;
if (isalpha(codepoint))