From c87f7292beb65f96413124a611a5b59276ceb1e7 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sat, 7 Jun 2025 14:46:48 +0100 Subject: [PATCH] Fix rustdocs on Weight There is no point linking to `Weight` in the rustdocs of `Weight`. Also `wu` does not exist in this context, prefer 'weight units'. --- units/src/weight.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/src/weight.rs b/units/src/weight.rs index 6b4607eac..c59c18393 100644 --- a/units/src/weight.rs +++ b/units/src/weight.rs @@ -18,7 +18,7 @@ pub const WITNESS_SCALE_FACTOR: usize = 4; mod encapsulate { /// The weight of a transaction or block. /// - /// This is an integer newtype representing [`Weight`] in `wu`. 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. #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] pub struct Weight(u64);