From: Matt Corallo Date: Mon, 17 Apr 2023 14:54:32 +0000 (+0000) Subject: Fix variable name typo X-Git-Tag: v0.0.115~14^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=ef8e3770a96da083b5663c57a09cc5b0efce5df3;p=rust-lightning Fix variable name typo --- diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index 8177e835a..f1d3d973a 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -495,9 +495,9 @@ pub mod constants { impl InvoiceBuilder { /// 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,