Doc comment formatting

Co-authored-by: Jane Lusby <jlusby42@gmail.com>
This commit is contained in:
teor 2020-11-26 11:55:24 +10:00
parent 678e6ad090
commit 91476535d3
1 changed files with 4 additions and 2 deletions

View File

@ -68,7 +68,8 @@ impl AdjustedDifficulty {
/// Note that the `time`s might not be in reverse chronological order, because
/// block times are supplied by miners.
///
/// Panics:
/// # Panics
///
/// If the `context` contains fewer than 28 items.
pub fn new_from_block<C>(
candidate_block: &Block,
@ -100,7 +101,8 @@ impl AdjustedDifficulty {
///
/// See `new_from_block` for detailed information about the `context`.
///
/// Panics:
/// # Panics
///
/// If the context contains fewer than 28 items.
pub fn new_from_header<C>(
candidate_header: &block::Header,