clarify explanatory comment
authorJacob Lifshay <programmerjake@gmail.com>
Mon, 3 May 2021 02:40:43 +0000 (19:40 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Mon, 3 May 2021 02:40:43 +0000 (19:40 -0700)
src/f16.rs

index 04e8fbde11a871c0327ebf98dc518b199141f398..5bf2e69c213a401a12faf75b6dc8953a8cad9229 100644 (file)
@@ -93,8 +93,8 @@ macro_rules! impl_int_to_f16 {
             impl ConvertTo<F16> for $int {
                 fn to(self) -> F16 {
                     // f32 has enough mantissa bits such that f16 overflows to
-                    // infinity before f32 can't properly represent integer
-                    // values, making the below conversion correct.
+                    // infinity before f32 stops being able to properly
+                    // represent integer values, making the below conversion correct.
                     (self as f32).to()
                 }
             }