From 9bd3b8becd6c04f0dab01b2d60be94c0627ad4c8 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 4 Dec 2020 10:01:45 +1000 Subject: [PATCH] Clarify a difficulty debug impl comment --- zebra-chain/src/work/difficulty.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zebra-chain/src/work/difficulty.rs b/zebra-chain/src/work/difficulty.rs index 229af40e..03526a3e 100644 --- a/zebra-chain/src/work/difficulty.rs +++ b/zebra-chain/src/work/difficulty.rs @@ -63,8 +63,8 @@ pub struct CompactDifficulty(pub(crate) u32); impl fmt::Debug for CompactDifficulty { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - // There isn't a standard way to represent alternate formats for the - // same value. + // There isn't a standard way to show different representations of the + // same value f.debug_tuple("CompactDifficulty") // Use hex, because it's a float .field(&format_args!("{:#010x}", self.0)) @@ -139,8 +139,8 @@ impl Work { impl fmt::Debug for Work { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - // There isn't a standard way to represent alternate formats for the - // same value. + // There isn't a standard way to show different representations of the + // same value f.debug_tuple("Work") // Use hex, because expanded difficulty is in hex. .field(&format_args!("{:#x}", self.0))