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'.
This commit is contained in:
Tobin C. Harding 2025-06-07 14:46:48 +01:00
parent 02b523a8ad
commit c87f7292be
No known key found for this signature in database
GPG Key ID: 0AEF0A899E41F7DD
1 changed files with 1 additions and 1 deletions

View File

@ -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);