Merge pull request #3433 from andrei-21/fix/iso-typo

Fix `ISO 4712` typo to `ISO 4217`
This commit is contained in:
Jeffrey Czyz 2024-11-29 16:03:30 -06:00 committed by GitHub
commit 846342eec1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -1028,16 +1028,16 @@ pub enum Amount {
/// The amount in millisatoshi.
amount_msats: u64,
},
/// An amount of currency specified using ISO 4712.
/// An amount of currency specified using ISO 4217.
Currency {
/// The currency that the amount is denominated in.
iso4217_code: CurrencyCode,
/// The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
/// The amount in the currency unit adjusted by the ISO 4217 exponent (e.g., USD cents).
amount: u64,
},
}
/// An ISO 4712 three-letter currency code (e.g., USD).
/// An ISO 4217 three-letter currency code (e.g., USD).
pub type CurrencyCode = [u8; 3];
/// Quantity of items supported by an [`Offer`].

View File

@ -664,7 +664,7 @@ macro_rules! impl_array {
);
}
impl_array!(3, u8); // for rgb, ISO 4712 code
impl_array!(3, u8); // for rgb, ISO 4217 code
impl_array!(4, u8); // for IPv4
impl_array!(12, u8); // for OnionV2
impl_array!(16, u8); // for IPv6