Fix documentation on onion message packet ControlTlvs

This commit is contained in:
Valentine Wallace 2023-08-09 14:29:35 -07:00
parent 0ddd3cb684
commit ebb0676e85
No known key found for this signature in database
GPG key ID: FD3E106A2CE099B4

View file

@ -264,9 +264,9 @@ ReadableArgs<(SharedSecret, &H, &L)> for Payload<<H as CustomOnionMessageHandler
}
/// When reading a packet off the wire, we don't know a priori whether the packet is to be forwarded
/// or received. Thus we read a ControlTlvs rather than reading a ForwardControlTlvs or
/// ReceiveControlTlvs directly. Also useful on the encoding side to keep forward and receive TLVs
/// in the same iterator.
/// or received. Thus we read a `ControlTlvs` rather than reading a [`ForwardTlvs`] or
/// [`ReceiveTlvs`] directly. Also useful on the encoding side to keep forward and receive TLVs in
/// the same iterator.
pub(crate) enum ControlTlvs {
/// This onion message is intended to be forwarded.
Forward(ForwardTlvs),