Skip to content

Commit

Permalink
fix(FFI): Update doc comments to include details of replacing interac…
Browse files Browse the repository at this point in the history
…tions #389
  • Loading branch information
rholshausen committed Feb 17, 2024
1 parent 5dad90c commit c4e5ffe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rust/pact_ffi/src/mock_server/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,10 @@ pub extern fn pactffi_new_interaction(pact: PactHandle, description: *const c_ch
}
}

/// Creates a new message interaction and return a handle to it
/// Creates a new message interaction and returns a handle to it. Calling this function with the
/// same description as an existing interaction will result in that interaction being replaced
/// with the new one.
///
/// * `description` - The interaction description. It needs to be unique for each interaction.
///
/// Returns a new `InteractionHandle`.
Expand All @@ -489,7 +492,10 @@ pub extern fn pactffi_new_message_interaction(pact: PactHandle, description: *co
}
}

/// Creates a new synchronous message interaction (request/response) and return a handle to it
/// Creates a new synchronous message interaction (request/response) and returns a handle to it.
/// Calling this function with the same description as an existing interaction will result in
/// that interaction being replaced with the new one.
///
/// * `description` - The interaction description. It needs to be unique for each interaction.
///
/// Returns a new `InteractionHandle`.
Expand Down

0 comments on commit c4e5ffe

Please sign in to comment.