From a2a6609466dce1c1806cdda9bdaaf35eeb43d031 Mon Sep 17 00:00:00 2001 From: Patrick Urbanke Date: Thu, 2 Nov 2023 22:53:46 +0100 Subject: [PATCH] Fixed typos --- include/rfl/comparisons.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/rfl/comparisons.hpp b/include/rfl/comparisons.hpp index 3a9a35f7..39d68c0b 100644 --- a/include/rfl/comparisons.hpp +++ b/include/rfl/comparisons.hpp @@ -11,8 +11,9 @@ struct EqualTo { static Result validate(T _value) noexcept { constexpr auto threshold = static_cast(_threshold); if (_value != threshold) { - return Error("Value expected to be equal to" + std::to_string(threshold) + - ", but got " + std::to_string(_value) + "."); + return Error("Value expected to be equal to " + + std::to_string(threshold) + ", but got " + + std::to_string(_value) + "."); } return _value; } @@ -24,7 +25,7 @@ struct Minimum { static Result validate(T _value) noexcept { constexpr auto threshold = static_cast(_threshold); if (_value < threshold) { - return Error("Value expected to be greater than or equal to" + + return Error("Value expected to be greater than or equal to " + std::to_string(threshold) + ", but got " + std::to_string(_value) + "."); } @@ -52,7 +53,7 @@ struct Maximum { static Result validate(T _value) noexcept { constexpr auto threshold = static_cast(_threshold); if (_value > threshold) { - return Error("Value expected to be less than or equal to" + + return Error("Value expected to be less than or equal to " + std::to_string(threshold) + ", but got " + std::to_string(_value) + "."); } @@ -80,7 +81,7 @@ struct NotEqualTo { static Result validate(T _value) noexcept { constexpr auto threshold = static_cast(_threshold); if (_value == threshold) { - return Error("Value expected to not be equal to" + + return Error("Value expected to not be equal to " + std::to_string(threshold) + ", but got " + std::to_string(_value) + "."); }