diff --git a/lightning/src/offers/offer.rs b/lightning/src/offers/offer.rs index bf66850794c..3843c10cb8d 100644 --- a/lightning/src/offers/offer.rs +++ b/lightning/src/offers/offer.rs @@ -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`]. diff --git a/lightning/src/util/ser.rs b/lightning/src/util/ser.rs index e4158e31bf5..281789067ea 100644 --- a/lightning/src/util/ser.rs +++ b/lightning/src/util/ser.rs @@ -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