Make Weight docs uniform with FeeRate
This commit is contained in:
parent
c87f7292be
commit
153a6a2f3c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue