From 2e482f0fddb55da897f0ba8ea4d3fa5bb0fba1b5 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 27 Dec 2024 11:28:51 +1100 Subject: [PATCH] Remove unnecessary floating code comment Code comments that comment and arbitrary block "section" of code are almost always pointless and almost always go stale over time. These particular code comments add almost no value. Remove code comments. --- units/src/amount/signed.rs | 2 -- units/src/amount/unsigned.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/units/src/amount/signed.rs b/units/src/amount/signed.rs index 2faa7e45f..b58b9b16d 100644 --- a/units/src/amount/signed.rs +++ b/units/src/amount/signed.rs @@ -288,8 +288,6 @@ impl SignedAmount { self.display_in(denom).show_denomination().to_string() } - // Some arithmetic that doesn't fit in [`core::ops`] traits. - /// Gets the absolute value of this [`SignedAmount`]. #[must_use] pub fn abs(self) -> SignedAmount { SignedAmount(self.0.abs()) } diff --git a/units/src/amount/unsigned.rs b/units/src/amount/unsigned.rs index e7b214189..bce5f49c2 100644 --- a/units/src/amount/unsigned.rs +++ b/units/src/amount/unsigned.rs @@ -298,8 +298,6 @@ impl Amount { self.display_in(denom).show_denomination().to_string() } - // Some arithmetic that doesn't fit in [`core::ops`] traits. - /// Checked addition. /// /// Returns [`None`] if the sum is larger than [`Amount::MAX`].