@@ -372,7 +372,7 @@ impl TestGenerator {
372
372
/// Configures how a Rust type name is translated to a C type name.
373
373
///
374
374
/// 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.
376
376
///
377
377
/// The default behavior is that `struct foo` in Rust is translated to
378
378
/// `struct foo` in C, and `type foo` in Rust is translated to `foo` in C.
@@ -640,7 +640,7 @@ impl TestGenerator {
640
640
///
641
641
/// By default generated tests will ensure that the function pointer in C
642
642
/// 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
644
644
/// through the C identifier `foo` but the underlying symbol is mapped to
645
645
/// something like `__foo_compat`.
646
646
pub fn skip_fn_ptrcheck < F > ( & mut self , f : F ) -> & mut Self
@@ -1994,7 +1994,7 @@ impl<'a> Generator<'a> {
1994
1994
}}
1995
1995
for i in 0..size_of::<U>() {{
1996
1996
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>());
1998
1998
let rust = (*y_ptr.add(i)) as usize;
1999
1999
let c = (&r as *const _ as *const u8)
2000
2000
.add(i).read_volatile() as usize;
@@ -2342,7 +2342,7 @@ impl<'a, 'v> Visitor<'v> for Generator<'a> {
2342
2342
for arg in & decl. inputs {
2343
2343
if let ast:: TyKind :: Array ( _, _) = arg. ty . node {
2344
2344
panic ! (
2345
- "Foreing Function decl `{}` uses array in C FFI" ,
2345
+ "Foreign Function decl `{}` uses array in C FFI" ,
2346
2346
& i. ident. to_string( )
2347
2347
) ;
2348
2348
}
0 commit comments