From 6906f473494a08487c0bc615dadb452bb81d30ff Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Thu, 25 Jun 2026 14:25:32 -0400 Subject: [PATCH] Apply suggestions from AI code review: typos Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/libxrpl/basics/Number.cpp | 2 +- src/test/basics/Number_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libxrpl/basics/Number.cpp b/src/libxrpl/basics/Number.cpp index e79588ee78..b2427ff5ee 100644 --- a/src/libxrpl/basics/Number.cpp +++ b/src/libxrpl/basics/Number.cpp @@ -449,7 +449,7 @@ Number::Guard::pushOverflow(T mantissa) return; } - // The second step scales the final digit of the update mantissa proportionally, converting + // The second step scales the final digit of the updated mantissa proportionally, converting // from (kMaxRep, kMaxRepUp) to (0 to 9]. It then pushes that scaled digit onto the guard as // if it was a digit that got removed, but doesn't actually remove it. This method should be // future-proof in case the number of mantissa bits ever changes. (Though for integer values diff --git a/src/test/basics/Number_test.cpp b/src/test/basics/Number_test.cpp index 92b273eefd..5b8ae7ad19 100644 --- a/src/test/basics/Number_test.cpp +++ b/src/test/basics/Number_test.cpp @@ -1531,7 +1531,7 @@ public: { case MantissaRange::MantissaScale::Large330: // Rounding to nearest, since the mantissa is below the halfway point from - // kMaxRep to kMaxRep up, it will be rounded down to kMaxRep + // kMaxRep to kMaxRepUp, it will be rounded down to kMaxRep test( Number{std::numeric_limits::max(), 0} + 1, "9223372036854775807",