@@ -28,8 +28,8 @@ use core::time::Duration;
28
28
/// Pays the given [`Invoice`], retrying if needed based on [`Retry`].
29
29
///
30
30
/// [`Invoice::payment_hash`] is used as the [`PaymentId`], which ensures idempotency as long
31
- /// as the payment is still pending. Once the payment completes or fails , you must ensure that
32
- /// a second payment with the same [`PaymentHash`] is never sent.
31
+ /// as the payment is still pending. If the payment succeeds , you must ensure that a second payment
32
+ /// with the same [`PaymentHash`] is never sent.
33
33
///
34
34
/// If you wish to use a different payment idempotency token, see [`pay_invoice_with_id`].
35
35
pub fn pay_invoice < M : Deref , T : Deref , ES : Deref , NS : Deref , SP : Deref , F : Deref , R : Deref , L : Deref > (
82
82
/// [`Retry`].
83
83
///
84
84
/// [`Invoice::payment_hash`] is used as the [`PaymentId`], which ensures idempotency as long
85
- /// as the payment is still pending. Once the payment completes or fails , you must ensure that
86
- /// a second payment with the same [`PaymentHash`] is never sent.
85
+ /// as the payment is still pending. If the payment succeeds , you must ensure that a second payment
86
+ /// with the same [`PaymentHash`] is never sent.
87
87
///
88
88
/// If you wish to use a different payment idempotency token, see
89
89
/// [`pay_zero_value_invoice_with_id`].
@@ -108,7 +108,7 @@ where
108
108
}
109
109
110
110
/// Pays the given zero-value [`Invoice`] using the given amount and custom idempotency key,
111
- /// , retrying if needed based on [`Retry`].
111
+ /// retrying if needed based on [`Retry`].
112
112
///
113
113
/// Note that idempotency is only guaranteed as long as the payment is still pending. Once the
114
114
/// payment completes or fails, no idempotency guarantees are made.
0 commit comments