Skip to content

Commit a016a24

Browse files
committed
f fix docs
1 parent cfea807 commit a016a24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,8 +1946,9 @@ impl<Signer: Sign> Channel<Signer> {
19461946
/// an HTLC more than once or fulfill once and then attempt to fail after reconnect. We cannot,
19471947
/// however, fail more than once as we wait for an upstream failure to be irrevocably committed
19481948
/// before we fail backwards.
1949-
/// If we do fail twice, we debug_assert!(false) and return Ok(None). Thus, will always return
1950-
/// Ok(_) if debug assertions are turned on or preconditions are met.
1949+
///
1950+
/// If we do fail twice, we debug_assert!(false) and return Ok(()). Thus, will always return
1951+
/// Ok(()) if debug assertions are turned on or preconditions are met.
19511952
pub fn queue_fail_htlc<L: Deref>(&mut self, htlc_id_arg: u64, err_packet: msgs::OnionErrorPacket, logger: &L)
19521953
-> Result<(), ChannelError> where L::Target: Logger {
19531954
self.fail_htlc(htlc_id_arg, err_packet, true, logger)

0 commit comments

Comments
 (0)