mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
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:
commit
4b913a2330
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user