]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix variable name typo 2023-03-payment-metadata
authorMatt Corallo <git@bluematt.me>
Mon, 17 Apr 2023 14:54:32 +0000 (14:54 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 19 Apr 2023 14:55:48 +0000 (14:55 +0000)
lightning-invoice/src/lib.rs

index 8177e835a1e86d13f1129f142f7a401c1d2dddac..f1d3d973acf00e3ebbb0fa4e5d376b2f3c59c56c 100644 (file)
@@ -495,9 +495,9 @@ pub mod constants {
 impl InvoiceBuilder<tb::False, tb::False, tb::False, tb::False, tb::False, tb::False> {
        /// Construct new, empty `InvoiceBuilder`. All necessary fields have to be filled first before
        /// `InvoiceBuilder::build(self)` becomes available.
-       pub fn new(currrency: Currency) -> Self {
+       pub fn new(currency: Currency) -> Self {
                InvoiceBuilder {
-                       currency: currrency,
+                       currency,
                        amount: None,
                        si_prefix: None,
                        timestamp: None,