Permalink
Browse files

Misplaced doc comment for BlockHeaderView

  • Loading branch information...
mzabaluev committed Jan 11, 2019
1 parent a755f5f commit ecb69f12db4cf4433e0af6aaaee0ecae869dd79d
Showing with 5 additions and 6 deletions.
  1. +5 −6 cardano/src/block/block.rs
@@ -82,7 +82,11 @@ pub enum BlockHeader {

impl core::property::Header for BlockHeader {}

/// A by-reference view into the header data of a block.
/// Accessor to the header block data.
///
/// `BlockHeaderView` is like `BlockHeader`, but it refers to data
/// inside a `Block` rather than owning them. It is a lightweight
/// accessor to block header data.
#[derive(Debug, Clone)]
pub enum BlockHeaderView<'a> {
Boundary(&'a boundary::BlockHeader),
@@ -116,11 +120,6 @@ impl DerefMut for BlockHeaders {
}
}

/// Accessor to the header block data.
///
/// `BlockHeaderView` is like `BlockHeader`, but it refers to data
/// inside a `Block` rather than owning them. It is a lightweight
/// accessor to block header data.
impl<'a> BlockHeaderView<'a> {
/// Returns the hash of the previous block.
pub fn previous_header(&self) -> HeaderHash {

0 comments on commit ecb69f1

Please sign in to comment.