From 797ae2e559a656d93f3e8415c9a20acb2e03a908 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 29 Oct 2024 08:35:11 +0100 Subject: [PATCH] docs: typo in a comment fixed --- src/core/include/mp-units/framework/quantity.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/include/mp-units/framework/quantity.h b/src/core/include/mp-units/framework/quantity.h index 3c4dc0c9..09357ddc 100644 --- a/src/core/include/mp-units/framework/quantity.h +++ b/src/core/include/mp-units/framework/quantity.h @@ -415,19 +415,19 @@ public: } friend constexpr decltype(auto) operator*=(FwdQ&& lhs, const Value& v) { - // TODO use *= when compiiler bug is resolved: + // TODO use *= when compiler bug is resolved: // https://developercommunity.visualstudio.com/t/Discrepancy-in-Behavior-of-operator-an/10732445 lhs.numerical_value_is_an_implementation_detail_ = lhs.numerical_value_is_an_implementation_detail_ * v; return std::forward(lhs); } template Q2, std::derived_from Q1 = std::remove_cvref_t> - requires(Q2::unit == ::mp_units::one) && requires(rep a, const typename Q2::rep b) { + requires(Q2::unit == ::mp_units::one) && requires(rep a, Q2::rep b) { { a *= b } -> std::same_as; } friend constexpr decltype(auto) operator*=(FwdQ1&& lhs, const Q2& rhs) { - // TODO use *= when compiiler bug is resolved: + // TODO use *= when compiler bug is resolved: // https://developercommunity.visualstudio.com/t/Discrepancy-in-Behavior-of-operator-an/10732445 lhs.numerical_value_is_an_implementation_detail_ = lhs.numerical_value_is_an_implementation_detail_ * rhs.numerical_value_is_an_implementation_detail_; @@ -435,26 +435,26 @@ public: } template Q = std::remove_cvref_t> - requires(!Quantity) && requires(rep a, const Value b) { + requires(!Quantity) && requires(rep a, Value b) { { a /= b } -> std::same_as; } friend constexpr decltype(auto) operator/=(FwdQ&& lhs, const Value& v) { MP_UNITS_EXPECTS_DEBUG(v != quantity_values::zero()); - // TODO use /= when compiiler bug is resolved: + // TODO use /= when compiler bug is resolved: // https://developercommunity.visualstudio.com/t/Discrepancy-in-Behavior-of-operator-an/10732445 lhs.numerical_value_is_an_implementation_detail_ = lhs.numerical_value_is_an_implementation_detail_ / v; return std::forward(lhs); } template Q2, std::derived_from Q1 = std::remove_cvref_t> - requires(Q2::unit == ::mp_units::one) && requires(rep a, const typename Q2::rep b) { + requires(Q2::unit == ::mp_units::one) && requires(rep a, Q2::rep b) { { a /= b } -> std::same_as; } friend constexpr decltype(auto) operator/=(FwdQ1&& lhs, const Q2& rhs) { MP_UNITS_EXPECTS_DEBUG(rhs != rhs.zero()); - // TODO use /= when compiiler bug is resolved: + // TODO use /= when compiler bug is resolved: // https://developercommunity.visualstudio.com/t/Discrepancy-in-Behavior-of-operator-an/10732445 lhs.numerical_value_is_an_implementation_detail_ = lhs.numerical_value_is_an_implementation_detail_ / rhs.numerical_value_is_an_implementation_detail_;