Skip to content

Commit 846342e

Browse files
authored
Merge pull request #3433 from andrei-21/fix/iso-typo
Fix `ISO 4712` typo to `ISO 4217`
2 parents 12920d8 + fa731ae commit 846342e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lightning/src/offers/offer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,16 +1028,16 @@ pub enum Amount {
10281028
/// The amount in millisatoshi.
10291029
amount_msats: u64,
10301030
},
1031-
/// An amount of currency specified using ISO 4712.
1031+
/// An amount of currency specified using ISO 4217.
10321032
Currency {
10331033
/// The currency that the amount is denominated in.
10341034
iso4217_code: CurrencyCode,
1035-
/// The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
1035+
/// The amount in the currency unit adjusted by the ISO 4217 exponent (e.g., USD cents).
10361036
amount: u64,
10371037
},
10381038
}
10391039

1040-
/// An ISO 4712 three-letter currency code (e.g., USD).
1040+
/// An ISO 4217 three-letter currency code (e.g., USD).
10411041
pub type CurrencyCode = [u8; 3];
10421042

10431043
/// Quantity of items supported by an [`Offer`].

lightning/src/util/ser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ macro_rules! impl_array {
664664
);
665665
}
666666

667-
impl_array!(3, u8); // for rgb, ISO 4712 code
667+
impl_array!(3, u8); // for rgb, ISO 4217 code
668668
impl_array!(4, u8); // for IPv4
669669
impl_array!(12, u8); // for OnionV2
670670
impl_array!(16, u8); // for IPv6

0 commit comments

Comments
 (0)