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: ACKa4b5fb4002
apoelstra: ACKa4b5fb4002
Tree-SHA512: b2b71f81be8a0d979b15471e7262e01284443e05626b26a19236fd25581700d9e37409576a4b73d5bb537c49ae83a4b7d40f0888dff078b07bd7550026cd778a
This commit is contained in:
commit
a40427b177
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue