Fix inaccurate comment in InvoicePayer
authorValentine Wallace <vwallace@protonmail.com>
Thu, 27 Oct 2022 20:58:30 +0000 (16:58 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Thu, 27 Oct 2022 22:02:12 +0000 (18:02 -0400)
lightning-invoice/src/payment.rs

index 4b2a682b3fa2142bb5b491a0010e835a5e3c5728..1b3177adfae20a0243bdc30c0091d29d6633177b 100644 (file)
@@ -606,9 +606,8 @@ where
                self.payment_cache.lock().unwrap().remove(payment_hash);
        }
 
-       /// Given a [`PaymentHash`], this function looks up inflight path attempts in the payment_cache.
-       /// Then, it uses the path information inside the cache to construct a HashMap mapping a channel's
-       /// short channel id and direction to the amount being sent through it.
+       /// Use path information in the payment_cache to construct a HashMap mapping a channel's short
+       /// channel id and direction to the amount being sent through it.
        ///
        /// This function should be called whenever we need information about currently used up liquidity
        /// across payments.