Skip to content

Commit 6525490

Browse files
committed
Replace cannot usage with can not in comments
1 parent f5fc01e commit 6525490

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/time.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -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 cannot be rounded to it
1486+
// the input represents less than 1ns and can not 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 cannot represent numbers between 0.999_999_940_395 and 1.0.
1504+
// since it can not 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 cannot represent numbers between 1.999_999_880...
1523+
// For example, it can not 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

Comments
 (0)