From a0e69713993d3d5d9a9b931a8bc36210a5239e5e Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Wed, 1 Jul 2026 12:04:42 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/libxrpl/protocol/STNumber.cpp | 2 +- src/test/protocol/STNumber_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libxrpl/protocol/STNumber.cpp b/src/libxrpl/protocol/STNumber.cpp index c37e6a9c19..3b4105f100 100644 --- a/src/libxrpl/protocol/STNumber.cpp +++ b/src/libxrpl/protocol/STNumber.cpp @@ -261,7 +261,7 @@ numberFromJson(SField const& field, json::Value const& value) // exponents match, or there are no more 0s. If the two results don't match exactly, then the // value has been rounded one way or another, and should not be used, because it may lead to an // unexpected result. canonicalizeParts is not to be confused with Number::canonicalize, because - // they're have completely different goals. + // they have completely different goals. auto canonicalizeParts = [](NumberParts p, int otherExponent) { if (p.mantissa == 0) return NumberParts{}; diff --git a/src/test/protocol/STNumber_test.cpp b/src/test/protocol/STNumber_test.cpp index 9efea2b258..74792e0a70 100644 --- a/src/test/protocol/STNumber_test.cpp +++ b/src/test/protocol/STNumber_test.cpp @@ -108,7 +108,7 @@ struct STNumber_test : public beast::unit_test::Suite auto const expectParseThrows = [this, &parseNumber](std::string const& boundary) { try { - auto const bad = parseNumber(boundary); + parseNumber(boundary); fail(); } catch (std::exception const& e)