Rollup merge of #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
This commit is contained in:
Matthias Krüger 2024-05-03 20:33:44 +02:00 committed by GitHub
commit 4b913a2330
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1437,10 +1437,10 @@ impl TryFromFloatSecsError {
const fn description(&self) -> &'static str {
match self.kind {
TryFromFloatSecsErrorKind::Negative => {
"can not convert float seconds to Duration: value is negative"
"cannot convert float seconds to Duration: value is negative"
}
TryFromFloatSecsErrorKind::OverflowOrNan => {
"can not convert float seconds to Duration: value is either too big or NaN"
"cannot convert float seconds to Duration: value is either too big or NaN"
}
}
}