Fix spelling of `invalid_legcay_address_length`

Incorrect spelling kept as a deprecated, hidden, function.
This commit is contained in:
Peter Todd 2025-01-30 02:37:59 +00:00
parent 515a66b854
commit 5fd80581eb
No known key found for this signature in database
GPG Key ID: 2E5CB5D535512F37
1 changed files with 5 additions and 1 deletions

View File

@ -334,7 +334,11 @@ pub struct LegacyAddressTooLongError {
impl LegacyAddressTooLongError { impl LegacyAddressTooLongError {
/// Returns the invalid legacy address length. /// 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 { impl fmt::Display for LegacyAddressTooLongError {