From ec94d1822298517cc3753f9f317296b4cb5b1afe Mon Sep 17 00:00:00 2001 From: gruve-p Date: Fri, 4 Aug 2023 12:14:48 +0200 Subject: [PATCH] more fixes --- groestlcoin/src/network.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groestlcoin/src/network.rs b/groestlcoin/src/network.rs index 1d1c82f97e..4377040ec6 100644 --- a/groestlcoin/src/network.rs +++ b/groestlcoin/src/network.rs @@ -59,7 +59,7 @@ impl Network { /// use groestlcoin::Network; /// use std::convert::TryFrom; /// - /// assert_eq!(Ok(Network::Groestlcoin), Network::try_from(Magic::from_bytes([0xF9, 0xBE, 0xB4, 0xD9]))); + /// assert_eq!(Ok(Network::Groestlcoin), Network::try_from(Magic::from_bytes([0xF9, 0xBE, 0xB4, 0xD4]))); /// assert_eq!(None, Network::from_magic(Magic::from_bytes([0xFF, 0xFF, 0xFF, 0xFF]))); /// ``` pub fn from_magic(magic: Magic) -> Option { Network::try_from(magic).ok() } @@ -74,7 +74,7 @@ impl Network { /// use groestlcoin::Network; /// /// let network = Network::Groestlcoin; - /// assert_eq!(network.magic(), Magic::from_bytes([0xF9, 0xBE, 0xB4, 0xD9])); + /// assert_eq!(network.magic(), Magic::from_bytes([0xF9, 0xBE, 0xB4, 0xD4])); /// ``` pub fn magic(self) -> Magic { Magic::from(self) }