From 67d48e1c5921146b97083c0b89d0c3424104242b Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Sat, 6 Feb 2021 00:10:52 +0900 Subject: [PATCH] fix typo --- tests/ui/zero_div_zero.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/zero_div_zero.rs b/tests/ui/zero_div_zero.rs index 09db130a764..ed3a9208fc3 100644 --- a/tests/ui/zero_div_zero.rs +++ b/tests/ui/zero_div_zero.rs @@ -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 }