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:
    ACK 5fd80581eb
  Kixunil:
    ACK 5fd80581eb
  apoelstra:
    ACK 5fd80581eb9167195bbb4552fbd2210c40b22b7b; successfully ran local tests

Tree-SHA512: 697685a04046a90a22ba0181a64698294d7fb08918c960b707e0087864a36cf00768d7205e452becff7084a87a655d6226b7ddd0c8aa08b4bec71d23399a7f5d
This commit is contained in:
merge-script 2025-02-01 11:44:57 +00:00
commit 5ac27b91a1
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 5 additions and 1 deletions

View File

@ -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 {