Skip to content

Commit e2e73d7

Browse files
committed
chore: fix some typos
Signed-off-by: whosehang <whosehang@outlook.com>
1 parent d106c9f commit e2e73d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/teeos/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub type ssize_t = isize;
4848

4949
pub type pid_t = c_int;
5050

51-
// aarch64 specifc
51+
// aarch64 specific
5252
pub type c_char = u8;
5353

5454
pub type wchar_t = u32;
@@ -61,9 +61,9 @@ pub type c_ulong = u64;
6161
pub struct _CLongDouble(pub u128);
6262

6363
// long double in C means A float point value, which has 128bit length.
64-
// but some bit maybe not used, so the really length of long double could be 80(x86) or 128(power pc/IEEE)
64+
// but some bit maybe not used, so the real length of long double could be 80(x86) or 128(power pc/IEEE)
6565
// this is different from f128(not stable and not included default) in Rust, so we use u128 for FFI(Rust to C).
66-
// this is unstable and will couse to memfault/data abort.
66+
// this is unstable and will cause to memfault/data abort.
6767
pub type c_longdouble = _CLongDouble;
6868

6969
pub type pthread_t = c_ulong;

src/unix/haiku/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ extern "C" {
12991299
pub fn find_path_for_path_etc(
13001300
path: *const ::c_char,
13011301
dependency: *const ::c_char,
1302-
architectur: *const ::c_char,
1302+
architecture: *const ::c_char,
13031303
baseDirectory: path_base_directory,
13041304
subPath: *const ::c_char,
13051305
flags: u32,

0 commit comments

Comments
 (0)