From 801b9ec62d94f201e67d053ee90dae0b70e50a42 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 26 Jun 2023 15:10:27 +0200 Subject: chore: fix typos (#19572) --- test_ffi/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test_ffi/src') 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( -- cgit v1.2.3