Merge rust-bitcoin/rust-bitcoin#1676: Fix docs for UnknownMagic to be accurate

a4b5fb4002 Fix docs for UnknownMagic to be accurate (benthecarman)

Pull request description:

  I assume the old docs are a copy-paste error, strings are not involved when this error is encountered.

ACKs for top commit:
  Kixunil:
    ACK a4b5fb4002
  apoelstra:
    ACK a4b5fb4002

Tree-SHA512: b2b71f81be8a0d979b15471e7262e01284443e05626b26a19236fd25581700d9e37409576a4b73d5bb537c49ae83a4b7d40f0888dff078b07bd7550026cd778a
This commit is contained in:
Andrew Poelstra 2023-02-27 15:32:23 +00:00
commit a40427b177
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ impl From<Network> for Magic {
} }
} }
/// Error in parsing magic from string. /// Error in creating a Network from Magic bytes.
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct UnknownMagic(Magic); pub struct UnknownMagic(Magic);