Skip to content

Commit

Permalink
Update doc comment for BorrowedMessage::from_dr_event
Browse files Browse the repository at this point in the history
  • Loading branch information
scanterog committed Nov 7, 2023
1 parent 0b885a5 commit 32b0d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ impl<'a> BorrowedMessage<'a> {

/// Creates a new `BorrowedMessage` that wraps the native Kafka message
/// pointer returned via the delivery report event. The lifetime of
/// the message will be bound to the lifetime of the event passed as
/// parameter. The message will not be freed in any circumstance.
/// the message will be bound to the lifetime of the client passed as
/// parameter.
pub(crate) unsafe fn from_dr_event<C>(
ptr: *mut RDKafkaMessage,
event: Arc<NativeEvent>,
Expand Down

0 comments on commit 32b0d24

Please sign in to comment.