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:
parent
02b523a8ad
commit
c87f7292be
|
@ -18,7 +18,7 @@ pub const WITNESS_SCALE_FACTOR: usize = 4;
|
||||||
mod encapsulate {
|
mod encapsulate {
|
||||||
/// The weight of a transaction or block.
|
/// 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.
|
/// against mixing up types as well as basic formatting features.
|
||||||
#[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);
|
||||||
|
|
Loading…
Reference in New Issue