summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-02 12:33:48 -0800
committerGitHub <noreply@github.com>2021-01-02 12:33:48 -0800
commit62f67df6d7cde8f5d08418dcbff725724cc6cff6 (patch)
tree61fb7dc24ebbf6e679deeba05278c5380cb35025 /src/common
parent55fb8e7bdd01e2a9de37f68fb7ac40fb88b3f6f5 (diff)
parenta745d87971b2c9795e1b2c587bfe30b849b522fa (diff)
Merge pull request #5277 from Morph1984/fix-comments
general: Fix various spelling errors
Diffstat (limited to 'src/common')
-rw-r--r--src/common/page_table.h2
-rw-r--r--src/common/swap.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/page_table.h b/src/common/page_table.h
index 0c14e6433..61c5552e0 100644
--- a/src/common/page_table.h
+++ b/src/common/page_table.h
@@ -90,7 +90,7 @@ struct PageTable {
PageTable& operator=(PageTable&&) noexcept = default;
/**
- * Resizes the page table to be able to accomodate enough pages within
+ * Resizes the page table to be able to accommodate enough pages within
* a given address space.
*
* @param address_space_width_in_bits The address size width in bits.
diff --git a/src/common/swap.h b/src/common/swap.h
index 7665942a2..a80e191dc 100644
--- a/src/common/swap.h
+++ b/src/common/swap.h
@@ -394,7 +394,7 @@ public:
template <typename S, typename T2, typename F2>
friend S operator%(const S& p, const swapped_t v);
- // Arithmetics + assignements
+ // Arithmetics + assignments
template <typename S, typename T2, typename F2>
friend S operator+=(const S& p, const swapped_t v);
@@ -451,7 +451,7 @@ S operator%(const S& i, const swap_struct_t<T, F> v) {
return i % v.swap();
}
-// Arithmetics + assignements
+// Arithmetics + assignments
template <typename S, typename T, typename F>
S& operator+=(S& i, const swap_struct_t<T, F> v) {
i += v.swap();