From 85612908af936c7f0866227e24a3359115991ca2 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 3 Mar 2025 14:01:00 +1100 Subject: [PATCH] Use uniform return statement in docs We have a bunch of 'Returns [`None`] if .. ' statements. Make the whole module uniform. --- units/src/fee.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/units/src/fee.rs b/units/src/fee.rs index 2cf8d5bb6..1bb3b9b66 100644 --- a/units/src/fee.rs +++ b/units/src/fee.rs @@ -144,7 +144,7 @@ impl FeeRate { /// ensuring that the transaction fee is enough instead of falling short if /// rounded down. /// - /// [`None`] is returned if an overflow occurred. + /// Returns [`None`] if overflow occurred. #[must_use] pub const fn checked_mul_by_weight(self, weight: Weight) -> Option { // No `?` operator in const context. @@ -206,7 +206,7 @@ impl Weight { /// ensuring that the transaction fee is enough instead of falling short if /// rounded down. /// - /// [`None`] is returned if an overflow occurred. + /// Returns [`None`] if overflow occurred. #[must_use] pub const fn checked_mul_by_fee_rate(self, fee_rate: FeeRate) -> Option { fee_rate.checked_mul_by_weight(self)