From 91476535d3fd95738af3699f4ded66bd3d3d657e Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 26 Nov 2020 11:55:24 +1000 Subject: [PATCH] Doc comment formatting Co-authored-by: Jane Lusby --- zebra-state/src/service/check/difficulty.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zebra-state/src/service/check/difficulty.rs b/zebra-state/src/service/check/difficulty.rs index 3013f49d..e9d212f4 100644 --- a/zebra-state/src/service/check/difficulty.rs +++ b/zebra-state/src/service/check/difficulty.rs @@ -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( 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( candidate_header: &block::Header,