chore: Fix typos in 'compiler' (batch 2)

This commit is contained in:
Alexander Cyon
2024-09-02 07:50:22 +02:00
parent 78d5c04d9c
commit 00de006f22
34 changed files with 54 additions and 54 deletions

View File

@@ -498,7 +498,7 @@ impl<'tcx> Validator<'_, 'tcx> {
Some(x) if x != 0 => {} // okay
_ => return Err(Unpromotable), // value not known or 0 -- not okay
}
// Furthermore, for signed divison, we also have to exclude `int::MIN / -1`.
// Furthermore, for signed division, we also have to exclude `int::MIN / -1`.
if lhs_ty.is_signed() {
match rhs_val.map(|x| x.to_int(sz)) {
Some(-1) | None => {