Skip to content

Commit 8b38ce0

Browse files
committed
Fix doc comment example
1 parent d2d1694 commit 8b38ce0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/onion_message/messenger.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub(super) const MAX_TIMER_TICKS: usize = 2;
122122
/// &keys_manager, &keys_manager, logger, &node_id_lookup, message_router,
123123
/// &offers_message_handler, &custom_message_handler
124124
/// );
125-
125+
///
126126
/// # #[derive(Debug)]
127127
/// # struct YourCustomMessage {}
128128
/// impl Writeable for YourCustomMessage {
@@ -131,13 +131,15 @@ pub(super) const MAX_TIMER_TICKS: usize = 2;
131131
/// // Write your custom onion message to `w`
132132
/// }
133133
/// }
134+
///
134135
/// impl OnionMessageContents for YourCustomMessage {
135136
/// fn tlv_type(&self) -> u64 {
136137
/// # let your_custom_message_type = 42;
137138
/// your_custom_message_type
138139
/// }
139140
/// fn msg_type(&self) -> &'static str { "YourCustomMessageType" }
140141
/// }
142+
///
141143
/// // Send a custom onion message to a node id.
142144
/// let destination = Destination::Node(destination_node_id);
143145
/// let reply_path = None;

0 commit comments

Comments
 (0)