Skip to content

Commit 8e3a220

Browse files
committed
Fix doc comment example
1 parent c17a026 commit 8e3a220

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
@@ -186,7 +186,7 @@ for OnionMessenger<ES, NS, L, NL, MR, OMH, CMH> where
186186
/// &keys_manager, &keys_manager, logger, &node_id_lookup, message_router,
187187
/// &offers_message_handler, &custom_message_handler
188188
/// );
189-
189+
///
190190
/// # #[derive(Debug)]
191191
/// # struct YourCustomMessage {}
192192
/// impl Writeable for YourCustomMessage {
@@ -195,13 +195,15 @@ for OnionMessenger<ES, NS, L, NL, MR, OMH, CMH> where
195195
/// // Write your custom onion message to `w`
196196
/// }
197197
/// }
198+
///
198199
/// impl OnionMessageContents for YourCustomMessage {
199200
/// fn tlv_type(&self) -> u64 {
200201
/// # let your_custom_message_type = 42;
201202
/// your_custom_message_type
202203
/// }
203204
/// fn msg_type(&self) -> &'static str { "YourCustomMessageType" }
204205
/// }
206+
///
205207
/// // Send a custom onion message to a node id.
206208
/// let destination = Destination::Node(destination_node_id);
207209
/// let reply_path = None;

0 commit comments

Comments
 (0)