summaryrefslogtreecommitdiff
path: root/test_ffi/src
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-06-26 15:10:27 +0200
committerGitHub <noreply@github.com>2023-06-26 09:10:27 -0400
commit801b9ec62d94f201e67d053ee90dae0b70e50a42 (patch)
tree145f840c570dd72258ef309e9d31f100a5aa5786 /test_ffi/src
parentad3c494b46c97f0cf91098b7ec2afa576ea7a3dd (diff)
chore: fix typos (#19572)
Diffstat (limited to 'test_ffi/src')
-rw-r--r--test_ffi/src/lib.rs10
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(