Skip to content

Commit ebb0676

Browse files
Fix documentation on onion message packet ControlTlvs
1 parent 0ddd3cb commit ebb0676

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/onion_message/packet.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ ReadableArgs<(SharedSecret, &H, &L)> for Payload<<H as CustomOnionMessageHandler
264264
}
265265

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

0 commit comments

Comments
 (0)