Skip to content

Commit

Permalink
Auto merge of rust-lang#6678 - TaKO8Ki:fix-typo, r=flip1995
Browse files Browse the repository at this point in the history
Fix typo

This patch fixes a typo.

changelog: none
  • Loading branch information
bors committed Feb 5, 2021
2 parents 357c6a7 + 67d48e1 commit 89f266a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ui/zero_div_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 89f266a

Please sign in to comment.