@@ -1437,10 +1437,10 @@ impl TryFromFloatSecsError {
14371437 const fn description ( & self ) -> & ' static str {
14381438 match self . kind {
14391439 TryFromFloatSecsErrorKind :: Negative => {
1440- "can not convert float seconds to Duration: value is negative"
1440+ "cannot convert float seconds to Duration: value is negative"
14411441 }
14421442 TryFromFloatSecsErrorKind :: OverflowOrNan => {
1443- "can not convert float seconds to Duration: value is either too big or NaN"
1443+ "cannot convert float seconds to Duration: value is either too big or NaN"
14441444 }
14451445 }
14461446 }
@@ -1483,7 +1483,7 @@ macro_rules! try_from_secs {
14831483 let exp = ( ( bits >> $mant_bits) & EXP_MASK ) as i16 + MIN_EXP ;
14841484
14851485 let ( secs, nanos) = if exp < -31 {
1486- // the input represents less than 1ns and can not be rounded to it
1486+ // the input represents less than 1ns and cannot be rounded to it
14871487 ( 0u64 , 0u32 )
14881488 } else if exp < 0 {
14891489 // the input is less than 1 second
@@ -1501,7 +1501,7 @@ macro_rules! try_from_secs {
15011501 let add_ns = !( rem_msb || ( is_even && is_tie) ) ;
15021502
15031503 // f32 does not have enough precision to trigger the second branch
1504- // since it can not represent numbers between 0.999_999_940_395 and 1.0.
1504+ // since it cannot represent numbers between 0.999_999_940_395 and 1.0.
15051505 let nanos = nanos + add_ns as u32 ;
15061506 if ( $mant_bits == 23 ) || ( nanos != NANOS_PER_SEC ) { ( 0 , nanos) } else { ( 1 , 0 ) }
15071507 } else if exp < $mant_bits {
@@ -1520,7 +1520,7 @@ macro_rules! try_from_secs {
15201520 let add_ns = !( rem_msb || ( is_even && is_tie) ) ;
15211521
15221522 // f32 does not have enough precision to trigger the second branch.
1523- // For example, it can not represent numbers between 1.999_999_880...
1523+ // For example, it cannot represent numbers between 1.999_999_880...
15241524 // and 2.0. Bigger values result in even smaller precision of the
15251525 // fractional part.
15261526 let nanos = nanos + add_ns as u32 ;
0 commit comments