Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
schwartz-concordium committed Nov 23, 2023
1 parent 75f5804 commit a37d5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust-src/concordium_base/src/ffi_helpers/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern "C" fn free_array_len(ptr: *mut u8, len: u64) {
}

#[no_mangle]
/// Free a vector from its raw pointer, length and capacity.
/// Free a vector using its raw pointer, length and capacity.
extern "C" fn free_array_len_cap(ptr: *mut u8, len: u64, cap: u64) {
unsafe {
Vec::from_raw_parts(ptr, len as usize, cap as usize);
Expand Down

0 comments on commit a37d5e4

Please sign in to comment.