From 1fe984552e0a691c836136a82fe1733cea4f0763 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 3 Mar 2025 13:44:14 +1100 Subject: [PATCH] Improve Weight rustdocs Do trivial improvement to rustdocs for the `Weight` type. --- 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 720dfd385..c7fb19913 100644 --- a/units/src/weight.rs +++ b/units/src/weight.rs @@ -12,10 +12,10 @@ use serde::{Deserialize, Serialize}; /// The factor that non-witness serialization data is multiplied by during weight calculation. pub const WITNESS_SCALE_FACTOR: usize = 4; -/// Represents block weight - the weight of a transaction or block. +/// Represents weight - the weight of a transaction or block. /// /// This is an integer newtype representing [`Weight`] in `wu`. It provides protection against mixing -/// up the types as well as basic formatting features. +/// up types as well as basic formatting features. #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde", serde(transparent))]