Skip to content

Commit 5b26ff3

Browse files
authored
Unrolled build for rust-lang#123815
Rollup merge of rust-lang#123815 - trueb2:patch-1, r=workingjubilee Fix cannot usage in time.rs Fix a small grammar error in usage of cannot in time.rs errors
2 parents 0d7b2fb + 3ad0618 commit 5b26ff3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -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
}

0 commit comments

Comments
 (0)