summaryrefslogtreecommitdiff
path: root/test_ffi
diff options
context:
space:
mode:
Diffstat (limited to 'test_ffi')
-rw-r--r--test_ffi/src/lib.rs10
-rw-r--r--test_ffi/tests/thread_safe_test.js2
2 files changed, 6 insertions, 6 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(
diff --git a/test_ffi/tests/thread_safe_test.js b/test_ffi/tests/thread_safe_test.js
index 237a8d713..62c78279d 100644
--- a/test_ffi/tests/thread_safe_test.js
+++ b/test_ffi/tests/thread_safe_test.js
@@ -69,7 +69,7 @@ await sendWorkerMessage("register");
dylib.symbols.call_stored_function();
-// Unref both main and worker thread callbacks and terminate the wrorker: Note, the stored function pointer in lib is now dangling.
+// Unref both main and worker thread callbacks and terminate the worker: Note, the stored function pointer in lib is now dangling.
mainThreadCallback.unref();
await sendWorkerMessage("unref");