mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
fix typo
This commit is contained in:
parent
357c6a7e27
commit
67d48e1c59
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ fn main() {
|
|||
let one_more_f64_nan = 0.0f64 / 0.0f64;
|
||||
let zero = 0.0;
|
||||
let other_zero = 0.0;
|
||||
let other_nan = zero / other_zero; // fine - this lint doesn't propegate constants.
|
||||
let other_nan = zero / other_zero; // fine - this lint doesn't propagate constants.
|
||||
let not_nan = 2.0 / 0.0; // not an error: 2/0 = inf
|
||||
let also_not_nan = 0.0 / 2.0; // not an error: 0/2 = 0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue