From 153a6a2f3cff89f5545042868b4c804cd19382e3 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sat, 7 Jun 2025 14:58:11 +0100 Subject: [PATCH] Make Weight docs uniform with FeeRate --- units/src/weight.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/units/src/weight.rs b/units/src/weight.rs index c59c18393..31da7274c 100644 --- a/units/src/weight.rs +++ b/units/src/weight.rs @@ -19,7 +19,7 @@ mod encapsulate { /// The weight of a transaction or block. /// /// This is an integer newtype representing weight in weight units. It provides protection - /// against mixing up types as well as basic formatting features. + /// against mixing up the types, conversion functions, and basic formatting. #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] pub struct Weight(u64); @@ -37,7 +37,7 @@ mod encapsulate { pub use encapsulate::Weight; impl Weight { - /// 0 wu. + /// Zero weight units (wu). /// /// Equivalent to [`MIN`](Self::MIN), may better express intent in some contexts. pub const ZERO: Weight = Weight::from_wu(0);