From 64fb41cabf1aa3d4c41e3e2bb059124b81272cee Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:32:10 -0700 Subject: [PATCH] fix link typo on `BlockState` (#10431) --- crates/chain-state/src/in_memory.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/chain-state/src/in_memory.rs b/crates/chain-state/src/in_memory.rs index 8be431e98b89..9dd5de456a59 100644 --- a/crates/chain-state/src/in_memory.rs +++ b/crates/chain-state/src/in_memory.rs @@ -567,12 +567,12 @@ pub struct BlockState { #[allow(dead_code)] impl BlockState { - /// `BlockState` constructor. + /// [`BlockState`] constructor. pub const fn new(block: ExecutedBlock) -> Self { Self { block, parent: None } } - /// `BlockState` constructor with parent. + /// [`BlockState`] constructor with parent. pub fn with_parent(block: ExecutedBlock, parent: Option) -> Self { Self { block, parent: parent.map(Box::new) } } @@ -657,7 +657,7 @@ impl BlockState { chain } - /// Appends the parent chain of this `BlockState` to the given vector. + /// Appends the parent chain of this [`BlockState`] to the given vector. pub fn append_parent_chain<'a>(&'a self, chain: &mut Vec<&'a Self>) { chain.extend(self.parent_state_chain()); }