Reduce typo count.

This commit is contained in:
Bruce Mitchener 2024-07-20 12:50:36 +07:00
parent 057c4ae287
commit cf4270d13b
9 changed files with 13 additions and 13 deletions

View file

@ -45,7 +45,7 @@ fn main() {
let _ = unsafe { *core::ptr::addr_of!(a) };
let _repeat = [0; 64];
// do NOT lint for array as sematic differences with/out `*&`.
// do NOT lint for array as semantic differences with/out `*&`.
let _arr = *&[0, 1, 2, 3, 4];
}

View file

@ -45,7 +45,7 @@ fn main() {
let _ = unsafe { *core::ptr::addr_of!(a) };
let _repeat = *&[0; 64];
// do NOT lint for array as sematic differences with/out `*&`.
// do NOT lint for array as semantic differences with/out `*&`.
let _arr = *&[0, 1, 2, 3, 4];
}

View file

@ -200,7 +200,7 @@ mod with_ty_alias {
}
// NOTE: When checking the type of a function param, make sure it is not an alias with
// `AliasTyKind::Projection` before calling `TyCtxt::type_of` to find out what the actual type
// is. Because the associate ty could have no default, therefore would cause ICE, as demostrated
// is. Because the associate ty could have no default, therefore would cause ICE, as demonstrated
// in this test.
const fn alias_ty_is_projection(bar: <() as FooTrait>::Foo) {}
}

View file

@ -200,7 +200,7 @@ mod with_ty_alias {
}
// NOTE: When checking the type of a function param, make sure it is not an alias with
// `AliasTyKind::Projection` before calling `TyCtxt::type_of` to find out what the actual type
// is. Because the associate ty could have no default, therefore would cause ICE, as demostrated
// is. Because the associate ty could have no default, therefore would cause ICE, as demonstrated
// in this test.
fn alias_ty_is_projection(bar: <() as FooTrait>::Foo) {}
}

View file

@ -20,7 +20,7 @@ fn main() {
f(); b = [] as [i32; 0];
// on vecs
// vecs dont support infering value of consts
// vecs dont support inferring value of consts
f(); let c: std::vec::Vec<i32> = vec![];
let d;
f(); d = vec![] as std::vec::Vec<i32>;

View file

@ -20,7 +20,7 @@ fn main() {
b = [f(); 0];
// on vecs
// vecs dont support infering value of consts
// vecs dont support inferring value of consts
let c = vec![f(); 0];
let d;
d = vec![f(); 0];