Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update safety comments #465

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading