Merge rust-bitcoin/rust-bitcoin#3984: Fix spelling of `invalid_legcay_address_length`
5fd80581eb
Fix spelling of `invalid_legcay_address_length` (Peter Todd) Pull request description: Incorrect spelling kept as a deprecated, hidden, function. ACKs for top commit: tcharding: ACK5fd80581eb
Kixunil: ACK5fd80581eb
apoelstra: ACK 5fd80581eb9167195bbb4552fbd2210c40b22b7b; successfully ran local tests Tree-SHA512: 697685a04046a90a22ba0181a64698294d7fb08918c960b707e0087864a36cf00768d7205e452becff7084a87a655d6226b7ddd0c8aa08b4bec71d23399a7f5d
This commit is contained in:
commit
5ac27b91a1
|
@ -334,7 +334,11 @@ pub struct LegacyAddressTooLongError {
|
|||
|
||||
impl LegacyAddressTooLongError {
|
||||
/// Returns the invalid legacy address length.
|
||||
pub fn invalid_legcay_address_length(&self) -> usize { self.length }
|
||||
pub fn invalid_legacy_address_length(&self) -> usize { self.length }
|
||||
|
||||
#[doc(hidden)]
|
||||
#[deprecated = "Use invalid_legacy_address_length() instead"]
|
||||
pub fn invalid_legcay_address_length(&self) -> usize { self.invalid_legacy_address_length() }
|
||||
}
|
||||
|
||||
impl fmt::Display for LegacyAddressTooLongError {
|
||||
|
|
Loading…
Reference in New Issue