Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Jul 30, 2024
1 parent a05a9f6 commit 8154dd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/evm/execution-errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ impl From<PruneSegmentError> for BlockExecutionError {
}

impl BlockExecutionError {
/// Create a new `BlockExecutionError::Other` variant.
/// Create a new [`BlockExecutionError::Internal`] variant, containing a
/// [`InternalBlockExecutionError::Other`] error.
#[cfg(feature = "std")]
pub fn other<E>(error: E) -> Self
where
Expand All @@ -149,7 +150,8 @@ impl BlockExecutionError {
Self::Internal(InternalBlockExecutionError::other(error))
}

/// Create a new [`BlockExecutionError::Other`] from a given message.
/// Create a new [`BlockExecutionError::Internal`] variant, containing a
/// [`InternalBlockExecutionError::Other`] error with the given message.
#[cfg(feature = "std")]
pub fn msg(msg: impl std::fmt::Display) -> Self {
Self::Internal(InternalBlockExecutionError::msg(msg))
Expand Down

0 comments on commit 8154dd6

Please sign in to comment.