Skip to content

Commit 4bb7ea6

Browse files
Fix documentation on onion message packet ControlTlvs
1 parent b980c2d commit 4bb7ea6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/onion_message/packet.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ ReadableArgs<(SharedSecret, &H, &L)> for Payload<<H as CustomOnionMessageHandler
263263
}
264264

265265
/// When reading a packet off the wire, we don't know a priori whether the packet is to be forwarded
266-
/// or received. Thus we read a ControlTlvs rather than reading a ForwardControlTlvs or
267-
/// ReceiveControlTlvs directly. Also useful on the encoding side to keep forward and receive TLVs
268-
/// in the same iterator.
266+
/// or received. Thus we read a `ControlTlvs` rather than reading a [`ForwardTlvs`] or
267+
/// [`ReceiveTlvs`] directly. Also useful on the encoding side to keep forward and receive TLVs in
268+
/// the same iterator.
269269
pub(crate) enum ControlTlvs {
270270
/// This onion message is intended to be forwarded.
271271
Forward(ForwardTlvs),

0 commit comments

Comments
 (0)