Skip to content

Commit

Permalink
fix link typo on BlockState (#10431)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Aug 21, 2024
1 parent 3da119b commit 64fb41c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/chain-state/src/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Self { block, parent: parent.map(Box::new) }
}
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 64fb41c

Please sign in to comment.