diff options
Diffstat (limited to 'test_ffi/src')
-rw-r--r-- | test_ffi/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test_ffi/src/lib.rs b/test_ffi/src/lib.rs index 0ddccf4dc..b1a210417 100644 --- a/test_ffi/src/lib.rs +++ b/test_ffi/src/lib.rs @@ -15,7 +15,7 @@ pub extern "C" fn print_something() { /// # Safety /// -/// The pointer to the buffer must be valid and initalized, and the length must +/// The pointer to the buffer must be valid and initialized, and the length must /// not be longer than the buffer's allocation. #[no_mangle] pub unsafe extern "C" fn print_buffer(ptr: *const u8, len: usize) { @@ -25,7 +25,7 @@ pub unsafe extern "C" fn print_buffer(ptr: *const u8, len: usize) { /// # Safety /// -/// The pointer to the buffer must be valid and initalized, and the length must +/// The pointer to the buffer must be valid and initialized, and the length must /// not be longer than the buffer's allocation. #[no_mangle] pub unsafe extern "C" fn print_buffer2( @@ -117,7 +117,7 @@ pub extern "C" fn sleep_blocking(ms: u64) { /// # Safety /// -/// The pointer to the buffer must be valid and initalized, and the length must +/// The pointer to the buffer must be valid and initialized, and the length must /// not be longer than the buffer's allocation. #[no_mangle] pub unsafe extern "C" fn fill_buffer(value: u8, buf: *mut u8, len: usize) { @@ -129,7 +129,7 @@ pub unsafe extern "C" fn fill_buffer(value: u8, buf: *mut u8, len: usize) { /// # Safety /// -/// The pointer to the buffer must be valid and initalized, and the length must +/// The pointer to the buffer must be valid and initialized, and the length must /// not be longer than the buffer's allocation. #[no_mangle] pub unsafe extern "C" fn nonblocking_buffer(ptr: *const u8, len: usize) { @@ -517,7 +517,7 @@ pub struct Mixed { /// # Safety /// -/// The array pointer to the buffer must be valid and initalized, and the length must +/// The array pointer to the buffer must be valid and initialized, and the length must /// be 2. #[no_mangle] pub unsafe extern "C" fn create_mixed( |