From 72fc9b3538e53c86b88c4c4216a396aaca4da23e Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Thu, 18 Nov 2021 20:00:11 +0100 Subject: [PATCH] typo --- Eule/Math.cpp | 2 +- Eule/Math.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Eule/Math.cpp b/Eule/Math.cpp index 984291a..652ee8b 100644 --- a/Eule/Math.cpp +++ b/Eule/Math.cpp @@ -78,7 +78,7 @@ bool Math::RandomChance(const double chance) int Math::Mod(const int numerator, const int denominator) { if (denominator == 0) - throw std::logic_error("Divide by zero"); + throw std::logic_error("Division by zero"); // Quick optimizations: diff --git a/Eule/Math.h b/Eule/Math.h index b2d4462..53fcef3 100644 --- a/Eule/Math.h +++ b/Eule/Math.h @@ -28,7 +28,7 @@ namespace Eule [[nodiscard]] static constexpr bool Similar(const double a, const double b, const double epsilon = 0.00001); //! Will compute the actual modulo of a fraction. The % operator returns bs for n<0. - //! May throw divide-by-zero std::logic_error + //! May throw division-by-zero std::logic_error [[nodiscard]] static int Mod(const int numerator, const int denominator); //! Will return a random double between `0` and `1`