summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-01-05 21:14:23 +0300
committerAndreas Kling <kling@serenityos.org>2023-01-06 12:01:46 +0100
commitc6d494513efbf39eb2183e2c620a110c925f2043 (patch)
treeb01cedd92e2759e8d98dc9a17281dee1675a176c /AK
parentb2a04ff48a95f795647aacefe6d41230397f458f (diff)
downloadserenity-c6d494513efbf39eb2183e2c620a110c925f2043.zip
AK: Fix typo in -= operator of DistinctNumeric
Diffstat (limited to 'AK')
-rw-r--r--AK/DistinctNumeric.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/DistinctNumeric.h b/AK/DistinctNumeric.h
index 1e0525ae7e..a106cb9a03 100644
--- a/AK/DistinctNumeric.h
+++ b/AK/DistinctNumeric.h
@@ -286,8 +286,8 @@ public:
}
constexpr Self& operator-=(Self const& other)
{
- static_assert(options.arithmetic, "'a+=b' is only available for DistinctNumeric types with 'Arithmetic'.");
- this->m_value += other.m_value;
+ static_assert(options.arithmetic, "'a-=b' is only available for DistinctNumeric types with 'Arithmetic'.");
+ this->m_value -= other.m_value;
return *this;
}
constexpr Self& operator*=(Self const& other)