diff --git a/src/teeos/mod.rs b/src/teeos/mod.rs index 25e06ffaa3b10..dc8a5f776514b 100644 --- a/src/teeos/mod.rs +++ b/src/teeos/mod.rs @@ -48,7 +48,7 @@ pub type ssize_t = isize; pub type pid_t = c_int; -// aarch64 specifc +// aarch64 specific pub type c_char = u8; pub type wchar_t = u32; @@ -61,9 +61,9 @@ pub type c_ulong = u64; pub struct _CLongDouble(pub u128); // long double in C means A float point value, which has 128bit length. -// but some bit maybe not used, so the really length of long double could be 80(x86) or 128(power pc/IEEE) +// but some bit maybe not used, so the real length of long double could be 80(x86) or 128(power pc/IEEE) // this is different from f128(not stable and not included default) in Rust, so we use u128 for FFI(Rust to C). -// this is unstable and will couse to memfault/data abort. +// this is unstable and will cause to memfault/data abort. pub type c_longdouble = _CLongDouble; pub type pthread_t = c_ulong; diff --git a/src/unix/haiku/native.rs b/src/unix/haiku/native.rs index 3d266deb56721..07830065add00 100644 --- a/src/unix/haiku/native.rs +++ b/src/unix/haiku/native.rs @@ -1299,7 +1299,7 @@ extern "C" { pub fn find_path_for_path_etc( path: *const ::c_char, dependency: *const ::c_char, - architectur: *const ::c_char, + architecture: *const ::c_char, baseDirectory: path_base_directory, subPath: *const ::c_char, flags: u32,