Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix link typo on BlockState #10431

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading