From 600f325d87e42f856da58c42a5280f098ebb6e8c Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 11 Mar 2023 22:10:38 -0500 Subject: general: fix spelling mistakes --- src/common/swap.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/common/swap.h') diff --git a/src/common/swap.h b/src/common/swap.h index 037b82781..085baaf9a 100644 --- a/src/common/swap.h +++ b/src/common/swap.h @@ -229,7 +229,7 @@ public: value = swap(swap() - 1); return old; } - // Comparaison + // Comparison // v == i bool operator==(const swapped_t& i) const { return swap() == i.swap(); @@ -368,7 +368,7 @@ public: // Member /** todo **/ - // Arithmetics + // Arithmetic template friend S operator+(const S& p, const swapped_t v); @@ -384,7 +384,7 @@ public: template friend S operator%(const S& p, const swapped_t v); - // Arithmetics + assignments + // Arithmetic + assignments template friend S operator+=(const S& p, const swapped_t v); @@ -415,7 +415,7 @@ public: friend bool operator==(const S& p, const swapped_t v); }; -// Arithmetics +// Arithmetic template S operator+(const S& i, const swap_struct_t v) { return i + v.swap(); @@ -441,7 +441,7 @@ S operator%(const S& i, const swap_struct_t v) { return i % v.swap(); } -// Arithmetics + assignments +// Arithmetic + assignments template S& operator+=(S& i, const swap_struct_t v) { i += v.swap(); @@ -465,7 +465,7 @@ S operator&(const swap_struct_t v, const S& i) { return static_cast(v.swap() & i); } -// Comparaison +// Comparison template bool operator<(const S& p, const swap_struct_t v) { return p < v.swap(); -- cgit v1.2.3