Make Weight docs uniform with FeeRate

This commit is contained in:
Tobin C. Harding 2025-06-07 14:58:11 +01:00
parent c87f7292be
commit 153a6a2f3c
No known key found for this signature in database
GPG Key ID: 0AEF0A899E41F7DD
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ mod encapsulate {
/// The weight of a transaction or block. /// The weight of a transaction or block.
/// ///
/// This is an integer newtype representing weight in weight units. It provides protection /// 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)] #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct Weight(u64); pub struct Weight(u64);
@ -37,7 +37,7 @@ mod encapsulate {
pub use encapsulate::Weight; pub use encapsulate::Weight;
impl Weight { impl Weight {
/// 0 wu. /// Zero weight units (wu).
/// ///
/// Equivalent to [`MIN`](Self::MIN), may better express intent in some contexts. /// Equivalent to [`MIN`](Self::MIN), may better express intent in some contexts.
pub const ZERO: Weight = Weight::from_wu(0); pub const ZERO: Weight = Weight::from_wu(0);