Skip to content

Commit 663fb7c

Browse files
authored
Merge pull request JohnTitor/ctest2#44 from JohnTitor/fix-typos
2 parents 2eccefa + 61f01c3 commit 663fb7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ctest/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl TestGenerator {
372372
/// Configures how a Rust type name is translated to a C type name.
373373
///
374374
/// The closure is given a Rust type name as well as a boolean indicating
375-
/// wehther it's a struct or not.
375+
/// whether it's a struct or not.
376376
///
377377
/// The default behavior is that `struct foo` in Rust is translated to
378378
/// `struct foo` in C, and `type foo` in Rust is translated to `foo` in C.
@@ -640,7 +640,7 @@ impl TestGenerator {
640640
///
641641
/// By default generated tests will ensure that the function pointer in C
642642
/// corresponds to the same function pointer in Rust. This can often
643-
/// unconver subtle symbol naming issues where a header file is referenced
643+
/// uncover subtle symbol naming issues where a header file is referenced
644644
/// through the C identifier `foo` but the underlying symbol is mapped to
645645
/// something like `__foo_compat`.
646646
pub fn skip_fn_ptrcheck<F>(&mut self, f: F) -> &mut Self
@@ -1994,7 +1994,7 @@ impl<'a> Generator<'a> {
19941994
}}
19951995
for i in 0..size_of::<U>() {{
19961996
if pad[i] == 1 {{ continue; }}
1997-
// eprintln!("Rusta testing byte {{}} of {{}} of {ty}", i, size_of::<U>());
1997+
// eprintln!("Rust testing byte {{}} of {{}} of {ty}", i, size_of::<U>());
19981998
let rust = (*y_ptr.add(i)) as usize;
19991999
let c = (&r as *const _ as *const u8)
20002000
.add(i).read_volatile() as usize;
@@ -2342,7 +2342,7 @@ impl<'a, 'v> Visitor<'v> for Generator<'a> {
23422342
for arg in &decl.inputs {
23432343
if let ast::TyKind::Array(_, _) = arg.ty.node {
23442344
panic!(
2345-
"Foreing Function decl `{}` uses array in C FFI",
2345+
"Foreign Function decl `{}` uses array in C FFI",
23462346
&i.ident.to_string()
23472347
);
23482348
}

0 commit comments

Comments
 (0)