mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
docs: Fix some comments to improve readability (#7122)
Signed-off-by: box4wangjing <box4wangjing@outlook.com> Co-authored-by: Mayukha Vadari <mvadari@ripple.com>
This commit is contained in:
@@ -1505,7 +1505,7 @@ roundToScale(STAmount const& value, std::int32_t scale, Number::RoundingMode rou
|
||||
STAmount const referenceValue{value.asset(), STAmount::kMinValue, scale, value.negative()};
|
||||
|
||||
NumberRoundModeGuard const mg(rounding);
|
||||
// With an IOU, the the result of addition will be truncated to the
|
||||
// With an IOU, the result of addition will be truncated to the
|
||||
// precision of the larger value, which in this case is referenceValue. Then
|
||||
// remove the reference value via subtraction, and we're left with the
|
||||
// rounded value.
|
||||
|
||||
@@ -515,7 +515,7 @@ class NFTokenBurn_test : public beast::unit_test::Suite
|
||||
{
|
||||
// Removing the last token from the last page deletes the
|
||||
// _previous_ page because we need to preserve that last
|
||||
// page an an anchor. The contents of the next-to-last page
|
||||
// page as an anchor. The contents of the next-to-last page
|
||||
// are moved into the last page.
|
||||
lastNFTokenPage = env.le(keylet::nftpageMax(alice));
|
||||
BEAST_EXPECT(lastNFTokenPage);
|
||||
@@ -694,7 +694,7 @@ class NFTokenBurn_test : public beast::unit_test::Suite
|
||||
{
|
||||
// Removing the last token from the last page deletes the
|
||||
// _previous_ page because we need to preserve that last
|
||||
// page an an anchor. The contents of the next-to-last page
|
||||
// page as an anchor. The contents of the next-to-last page
|
||||
// are moved into the last page.
|
||||
lastNFTokenPage = env.le(keylet::nftpageMax(alice));
|
||||
BEAST_EXPECT(lastNFTokenPage);
|
||||
|
||||
Reference in New Issue
Block a user