Skip to content

Commit

Permalink
docs: Update safety comment for pactffi_message_get_contents
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Nov 21, 2023
1 parent b57a717 commit a7b81fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/pact_ffi/src/models/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ ffi_fn! {
///
/// # Safety
///
/// The returned string must be deleted with `pactffi_string_delete`.
///
/// The returned string can outlive the message.
/// The returned string must be deleted with `pactffi_string_delete` and can outlive the message.
/// This function must only ever be called from a foreign language. Calling it from a Rust function
/// that has a Tokio runtime in its call stack can result in a deadlock.
///
/// # Error Handling
///
Expand Down

0 comments on commit a7b81fe

Please sign in to comment.