Skip to content

Commit

Permalink
docs: Update safety comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx authored and JP-Ellis committed Oct 2, 2024
1 parent 303073c commit f5ddf3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/pact_ffi/src/mock_server/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,8 @@ ffi_fn!{
///
/// # Safety
///
/// The comments parameter must be a valid pointer to a NULL terminated UTF-8,
/// The key parameter must be a valid pointer to a NULL terminated UTF-8.
/// The value parameter must be a valid pointer to a NULL terminated UTF-8,
/// or NULL if the comment is to be cleared.
fn pactffi_set_comment(interaction: InteractionHandle, key: *const c_char, value: *const c_char) -> bool {
let key = match convert_cstr("key", key) {
Expand Down Expand Up @@ -2578,8 +2579,7 @@ ffi_fn!{
///
/// # Safety
///
/// The comments parameter must be a valid pointer to a NULL terminated UTF-8,
/// or NULL if the comment is to be cleared.
/// The comment parameter must be a valid pointer to a NULL terminated UTF-8.
fn pactffi_add_text_comment(interaction: InteractionHandle, comment: *const c_char) -> bool {
let comment = match convert_cstr("comment", comment) {
Some(comment) => comment,
Expand Down

0 comments on commit f5ddf3d

Please sign in to comment.