Skip to content

Commit 9e8073f

Browse files
committed
Fix doc comment example
1 parent ff2a605 commit 9e8073f

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
@@ -120,7 +120,7 @@ pub(super) const MAX_TIMER_TICKS: usize = 2;
120120
/// &keys_manager, &keys_manager, logger, message_router, &offers_message_handler,
121121
/// &custom_message_handler
122122
/// );
123-
123+
///
124124
/// # #[derive(Debug)]
125125
/// # struct YourCustomMessage {}
126126
/// impl Writeable for YourCustomMessage {
@@ -129,12 +129,14 @@ pub(super) const MAX_TIMER_TICKS: usize = 2;
129129
/// // Write your custom onion message to `w`
130130
/// }
131131
/// }
132+
///
132133
/// impl OnionMessageContents for YourCustomMessage {
133134
/// fn tlv_type(&self) -> u64 {
134135
/// # let your_custom_message_type = 42;
135136
/// your_custom_message_type
136137
/// }
137138
/// }
139+
///
138140
/// // Send a custom onion message to a node id.
139141
/// let destination = Destination::Node(destination_node_id);
140142
/// let reply_path = None;

0 commit comments

Comments
 (0)