mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
AK: Fix typo in -= operator of DistinctNumeric
This commit is contained in:
parent
b2a04ff48a
commit
c6d494513e
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue