chore: fix doc lints (#4639)

This commit is contained in:
Alexey Shekhirin
2023-09-18 18:08:35 +01:00
committed by GitHub
parent cabb5bee24
commit 4aa3ebdbdd
23 changed files with 52 additions and 61 deletions

View File

@@ -810,7 +810,7 @@ pub struct BlockBody {
}
impl BlockBody {
/// Create a [`Block`](Block) from the body and its header.
/// Create a [`Block`] from the body and its header.
pub fn create_block(&self, header: Header) -> Block {
Block {
header,

View File

@@ -463,7 +463,7 @@ impl ChainSpec {
.unwrap_or_else(|| self.is_fork_active_at_timestamp(Hardfork::Cancun, timestamp))
}
/// Creates a [`ForkFilter`](crate::ForkFilter) for the block described by [Head].
/// Creates a [`ForkFilter`] for the block described by [Head].
pub fn fork_filter(&self, head: Head) -> ForkFilter {
let forks = self.forks_iter().filter_map(|(_, condition)| {
// We filter out TTD-based forks w/o a pre-known block since those do not show up in the

View File

@@ -69,7 +69,7 @@ impl<'de> Deserialize<'de> for U64HexOrNumber {
}
}
/// serde functions for handling primitive `u64` as [U64](crate::U64)
/// serde functions for handling primitive `u64` as [U64]
pub mod u64_hex_or_decimal {
use crate::serde_helper::num::U64HexOrNumber;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
@@ -89,7 +89,7 @@ pub mod u64_hex_or_decimal {
}
}
/// serde functions for handling primitive optional `u64` as [U64](crate::U64)
/// serde functions for handling primitive optional `u64` as [U64]
pub mod u64_hex_or_decimal_opt {
use crate::serde_helper::num::U64HexOrNumber;
use serde::{Deserialize, Deserializer, Serialize, Serializer};